17 overrides of TypeParameters
Microsoft.CodeAnalysis.CSharp (17)
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
90public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
244public override ImmutableArray<TypeParameterSymbol> TypeParameters { get; }
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TemplateSymbol.cs (1)
150public override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\ErrorTypeSymbol.cs (1)
311public override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
1644public override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\NativeIntegerTypeSymbol.cs (1)
38public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
63public override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\Source\ImplicitNamedTypeSymbol.cs (1)
86public override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\Source\SourceNamedTypeSymbol.cs (1)
743public override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\SubstitutedNamedTypeSymbol.cs (1)
88public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (1)
122public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (1)
799public override ImmutableArray<TypeParameterSymbol> TypeParameters { get; }
Symbols\Synthesized\SynthesizedContainer.cs (1)
82public sealed override ImmutableArray<TypeParameterSymbol> TypeParameters => _typeParameters;
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (1)
56public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty;
Symbols\Synthesized\SynthesizedHotReloadExceptionSymbol.cs (1)
85public override ImmutableArray<TypeParameterSymbol> TypeParameters => [];
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (1)
47public override ImmutableArray<TypeParameterSymbol> TypeParameters { get; }
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (1)
40public override ImmutableArray<TypeParameterSymbol> TypeParameters => ImmutableArray<TypeParameterSymbol>.Empty;
46 references to TypeParameters
Microsoft.CodeAnalysis.CSharp (46)
Binder\Binder_Conversions.cs (1)
648((NamedTypeSymbol)method.ReturnType).TypeArgumentsWithAnnotationsNoUseSiteDiagnostics[0].Type.Equals(((NamedTypeSymbol)arg.destination).TypeParameters[0], TypeCompareKind.ConsiderEverything));
Binder\Binder_Expressions.cs (4)
2573Error(diagnostics, ErrorCode.ERR_ValConstraintNotSatisfied, node, nullableType, nullableType.TypeParameters.Single(), indexType); 2653Error(diagnostics, ErrorCode.ERR_ValConstraintNotSatisfied, node, nullableType, nullableType.TypeParameters.Single(), rangeType); 2680Error(diagnostics, ErrorCode.ERR_ValConstraintNotSatisfied, operand, nullableType, nullableType.TypeParameters.Single(), indexType); 10884var typeParameters = delegateType.TypeParameters;
Binder\Binder_Symbols.cs (2)
1226unconstructedType.TypeParameters, 1238resultType = unconstructedType.Construct(PlaceholderTypeArgumentSymbol.CreateTypeArguments(unconstructedType.TypeParameters));
Binder\Semantics\Conversions\ConversionsBase.cs (2)
3244TypeParameters: { Length: 1 } 3691switch (original.TypeParameters[i].Variance)
Binder\WithClassTypeParametersBinder.cs (2)
42foreach (TypeParameterSymbol tps in _namedType.TypeParameters) 56foreach (var parameter in _namedType.TypeParameters)
Compilation\SyntaxTreeSemanticModel.cs (1)
2164return this.GetTypeParameterSymbol(typeSymbol.TypeParameters, typeParameter).GetPublicSymbol();
Compiler\ClsComplianceChecker.cs (1)
252CheckTypeParameterCompliance(symbol.TypeParameters, symbol);
Emitter\EditAndContinue\CSharpSymbolMatcher.cs (2)
443SymbolKind.NamedType or SymbolKind.ErrorType => ((NamedTypeSymbol)otherContainer).TypeParameters, 636var typeParameters = type.TypeParameters;
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
459foreach (var t in AdaptedNamedTypeSymbol.TypeParameters)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
257get { return TypeParameters.Length; }
Symbols\ConstraintsHelper.cs (1)
846type.OriginalDefinition.TypeParameters,
Symbols\ConstructedNamedTypeSymbol.cs (1)
64map: new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArgumentsWithAnnotations),
Symbols\ErrorTypeSymbol.cs (1)
667_map = new TypeMap(constructedFrom.ContainingType, constructedFrom.OriginalDefinition.TypeParameters, typeArgumentsWithAnnotations);
Symbols\MemberSymbolExtensions.cs (1)
330return ((NamedTypeSymbol)symbol).TypeParameters;
Symbols\Metadata\PE\MemberRefMetadataDecoder.cs (1)
106typeArgument = namedType.TypeParameters[position - arityOffset];
Symbols\NamedTypeSymbol.cs (4)
1047var typeParameters = definition.TypeParameters; 1216if (ConstructedNamedTypeSymbol.TypeParametersMatchTypeArguments(this.TypeParameters, typeArguments)) 1318return TypeMap.TypeParametersAsTypeSymbolsWithAnnotations(this.TypeParameters); 1470GetUnificationUseSiteDiagnosticRecursive(ref result, this.TypeParameters, owner, ref checkedTypes);
Symbols\PublicModel\NamedTypeSymbol.cs (1)
68return UnderlyingNamedTypeSymbol.TypeParameters.GetPublicSymbols();
Symbols\Retargeting\RetargetingNamedTypeSymbol.cs (1)
76this.RetargetingTranslator.Retarget(_underlyingType.TypeParameters), default(ImmutableArray<TypeParameterSymbol>));
Symbols\Retargeting\RetargetingSymbolTranslator.cs (2)
572newParameters.AddRange(genericType.TypeParameters); 1062return retargetedContainingType.TypeParameters[typeParameter.Ordinal];
Symbols\Source\SourceMemberContainerSymbol.cs (4)
592foreach (var typeParameter in this.TypeParameters) 2182foreach (TypeParameterSymbol typeParameter in this.TypeParameters) 2298foreach (var tp in TypeParameters) 5292foreach (var typeParameter in TypeParameters)
Symbols\SubstitutedNamedTypeSymbol.cs (2)
66_lazyTypeParameters = constructedFrom.TypeParameters; 114typeParameters = prevMap.SubstituteTypeParameters(OriginalDefinition.TypeParameters);
Symbols\SymbolExtensions.cs (2)
35Debug.Assert(type.TypeParameters.IsEmpty == (typeArguments.Length == 0)); 36return type.TypeParameters.IsEmpty ? type : type.Construct(typeArguments, unbound: false);
Symbols\TypeMap.cs (1)
142return WithAlphaRename(oldOwner.OriginalDefinition.TypeParameters, newOwner, out newTypeParameters);
Symbols\TypeSymbolExtensions.cs (3)
1614var typeParameters = type.OriginalDefinition.TypeParameters; 1689return type.TypeParameters; 1709result.AddRange(type.TypeParameters);
Symbols\UnboundGenericType.cs (1)
40constructedFrom.TypeParameters,
Symbols\VarianceSafety.cs (3)
91Debug.Assert(container.TypeParameters.Any(static tp => tp.Variance != VarianceKind.None)); 108if (container.TypeParameters.Any(static tp => tp.Variance != VarianceKind.None)) 385TypeParameterSymbol typeParam = namedType.TypeParameters[i];