@@ -4564,7 +4564,7 @@ namespace ts {
45644564 // The outer type parameters are those defined by enclosing generic classes, methods, or functions.
45654565 function getOuterTypeParametersOfClassOrInterface(symbol: Symbol): TypeParameter[] {
45664566 const declaration = symbol.flags & SymbolFlags.Class ? symbol.valueDeclaration : getDeclarationOfKind(symbol, SyntaxKind.InterfaceDeclaration);
4567- return appendOuterTypeParameters(undefined, declaration);
4567+ return appendOuterTypeParameters(/*typeParameters*/ undefined, declaration);
45684568 }
45694569
45704570 // The local type parameters are the combined set of type parameters from all declarations of the class,
@@ -7702,7 +7702,7 @@ namespace ts {
77027702 }
77037703
77047704 function createTypeEraser(sources: Type[]): TypeMapper {
7705- return createTypeMapper(sources, undefined);
7705+ return createTypeMapper(sources, /*targets*/ undefined);
77067706 }
77077707
77087708 /**
@@ -8418,7 +8418,7 @@ namespace ts {
84188418 }
84198419 }
84208420 if (source.flags & TypeFlags.StructuredOrTypeVariable || target.flags & TypeFlags.StructuredOrTypeVariable) {
8421- return checkTypeRelatedTo(source, target, relation, undefined, undefined, undefined);
8421+ return checkTypeRelatedTo(source, target, relation, /*errorNode*/ undefined);
84228422 }
84238423 return false;
84248424 }
@@ -13665,7 +13665,7 @@ namespace ts {
1366513665 const links = getNodeLinks(node);
1366613666 if (!links.resolvedJsxElementAttributesType) {
1366713667 const elemClassType = getJsxGlobalElementClassType();
13668- return links.resolvedJsxElementAttributesType = resolveCustomJsxElementAttributesType(node, shouldIncludeAllStatelessAttributesType, undefined, elemClassType);
13668+ return links.resolvedJsxElementAttributesType = resolveCustomJsxElementAttributesType(node, shouldIncludeAllStatelessAttributesType, /*elementType*/ undefined, elemClassType);
1366913669 }
1367013670 return links.resolvedJsxElementAttributesType;
1367113671 }
@@ -15717,7 +15717,7 @@ namespace ts {
1571715717 const parameter = signature.thisParameter;
1571815718 if (!parameter || parameter.valueDeclaration && !(<ParameterDeclaration>parameter.valueDeclaration).type) {
1571915719 if (!parameter) {
15720- signature.thisParameter = createSymbolWithType(context.thisParameter, undefined);
15720+ signature.thisParameter = createSymbolWithType(context.thisParameter, /*type*/ undefined);
1572115721 }
1572215722 assignTypeToParameterAndFixTypeParameters(signature.thisParameter, getTypeOfSymbol(context.thisParameter), mapper, checkMode);
1572315723 }
@@ -17300,7 +17300,7 @@ namespace ts {
1730017300 Diagnostics.A_type_predicate_cannot_reference_a_rest_parameter);
1730117301 }
1730217302 else {
17303- const leadingError = chainDiagnosticMessages(undefined, Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);
17303+ const leadingError = chainDiagnosticMessages(/*details*/ undefined, Diagnostics.A_type_predicate_s_type_must_be_assignable_to_its_parameter_s_type);
1730417304 checkTypeAssignableTo(typePredicate.type,
1730517305 getTypeOfNode(parent.parameters[typePredicate.parameterIndex]),
1730617306 node.type,
@@ -20507,7 +20507,7 @@ namespace ts {
2050720507 const typeName1 = typeToString(existing.containingType);
2050820508 const typeName2 = typeToString(base);
2050920509
20510- let errorInfo = chainDiagnosticMessages(undefined, Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical, symbolToString(prop), typeName1, typeName2);
20510+ let errorInfo = chainDiagnosticMessages(/*details*/ undefined, Diagnostics.Named_property_0_of_types_1_and_2_are_not_identical, symbolToString(prop), typeName1, typeName2);
2051120511 errorInfo = chainDiagnosticMessages(errorInfo, Diagnostics.Interface_0_cannot_simultaneously_extend_types_1_and_2, typeToString(type), typeName1, typeName2);
2051220512 diagnostics.add(createDiagnosticForNodeFromMessageChain(typeNode, errorInfo));
2051320513 }
0 commit comments