143 references to TypeParameterKind
Microsoft.CodeAnalysis (1)
Symbols\ITypeParameterSymbol.cs (1)
33TypeParameterKind TypeParameterKind { get; }
Microsoft.CodeAnalysis.CodeStyle (19)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
77if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
501if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (9)
618(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 619(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 620x.TypeParameterKind == TypeParameterKind.Cref); 622(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 623(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 624y.TypeParameterKind == TypeParameterKind.Cref); 635if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 640if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 647if (x.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
262(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 263(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 264x.TypeParameterKind == TypeParameterKind.Cref); 270if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 275if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 282if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Microsoft.CodeAnalysis.CSharp (33)
Binder\Binder_Lookup.cs (1)
2035if (type.TypeParameterKind == TypeParameterKind.Cref)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (2)
36public override TypeParameterKind TypeParameterKind 40return TypeParameterKind.Type;
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (2)
34public override TypeParameterKind TypeParameterKind 38return TypeParameterKind.Type;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (3)
102public override TypeParameterKind TypeParameterKind 107? TypeParameterKind.Method 108: TypeParameterKind.Type;
Symbols\PublicModel\TypeParameterSymbol.cs (1)
44TypeParameterKind ITypeParameterSymbol.TypeParameterKind
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1046if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
Symbols\Source\CrefTypeParameterSymbol.cs (2)
78public override TypeParameterKind TypeParameterKind 82return TypeParameterKind.Cref;
Symbols\Source\IndexedTypeParameterSymbol.cs (2)
38public override TypeParameterKind TypeParameterKind 42return TypeParameterKind.Method;
Symbols\Source\SourceTypeParameterSymbol.cs (4)
471public override TypeParameterKind TypeParameterKind 475return TypeParameterKind.Type; 617public sealed override TypeParameterKind TypeParameterKind 621return TypeParameterKind.Method;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (2)
27public override TypeParameterKind TypeParameterKind => TypeParameterKind.Type;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
221public override TypeParameterKind TypeParameterKind => TypeParameterKind.Type;
Symbols\Synthesized\SynthesizedSubstitutedTypeParameterSymbol.cs (6)
22Debug.Assert(this.TypeParameterKind == (ContainingSymbol is MethodSymbol ? TypeParameterKind.Method : 23(ContainingSymbol is NamedTypeSymbol ? TypeParameterKind.Type : 24TypeParameterKind.Cref)), 33public override TypeParameterKind TypeParameterKind => ContainingSymbol is MethodSymbol ? TypeParameterKind.Method : TypeParameterKind.Type;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (2)
37public override TypeParameterKind TypeParameterKind 39get { return TypeParameterKind.Method; }
Symbols\TypeParameterSymbol.cs (1)
118public abstract TypeParameterKind TypeParameterKind { get; }
Symbols\TypeWithAnnotations.cs (1)
212if (((TypeParameterSymbol)typeSymbol).TypeParameterKind == TypeParameterKind.Cref)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
48public override TypeParameterKind TypeParameterKind
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
937TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }] 953if (originalCreateMethod.Parameters.All(static p => p.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method })) 958if (originalCreateMethod.Parameters is [{ IsParams: true, Type: IArrayTypeSymbol { ElementType: ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } } }]) 984TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }]
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
121if (info.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.CSharp.Features (5)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
937TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }] 953if (originalCreateMethod.Parameters.All(static p => p.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method })) 958if (originalCreateMethod.Parameters is [{ IsParams: true, Type: IArrayTypeSymbol { ElementType: ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } } }]) 984TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }]
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
121if (info.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.Features (5)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
135if (!capturedTypeParameters.Any(static tp => tp.TypeParameterKind == TypeParameterKind.Method)) 144if (!capturedTypeParameters.Any(static tp => tp.TypeParameterKind == TypeParameterKind.Type))
IntroduceVariable\AbstractIntroduceVariableService.State_Parameter.cs (1)
29.Where(tp => tp.TypeParameterKind == TypeParameterKind.Method)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
693Contract.ThrowIfTrue(symbol.TypeParameterKind == TypeParameterKind.Cref);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
272if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Cref })
Microsoft.CodeAnalysis.VisualBasic (33)
Binding\Binder_Lookup.vb (1)
2040If typeParameter.TypeParameterKind = TypeParameterKind.Cref Then
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTypeParameterSymbol.vb (2)
27Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 29Return TypeParameterKind.Type
Symbols\IndexedTypeParameterSymbol.vb (2)
86Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 88Return TypeParameterKind.Method
Symbols\InstanceErrorTypeSymbol.vb (2)
190Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 192Return TypeParameterKind.Type
Symbols\Metadata\PE\PETypeParameterSymbol.vb (3)
100Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 103TypeParameterKind.Method, 104TypeParameterKind.Type)
Symbols\ReducedExtensionMethodSymbol.vb (2)
701Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 703Return TypeParameterKind.Method
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
999If typeParameter.TypeParameterKind = TypeParameterKind.Method Then
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
59Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind
Symbols\Source\CrefTypeParameterSymbol.vb (2)
116Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 118Return TypeParameterKind.Cref
Symbols\Source\SourceNamedTypeSymbol.vb (1)
979If typeParameter.TypeParameterKind = TypeParameterKind.Method Then
Symbols\Source\SourceTypeParameterSymbol.vb (4)
247Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 249Return TypeParameterKind.Type 326Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 328Return TypeParameterKind.Method
Symbols\SubstitutedTypeParameterSymbol.vb (1)
46Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (6)
49Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 50If(TypeOf Me.ContainingSymbol Is NamedTypeSymbol, TypeParameterKind.Type, 51TypeParameterKind.Cref)), 55Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 58TypeParameterKind.Method, 59TypeParameterKind.Type)
Symbols\TypeParameterSymbol.vb (1)
91Public MustOverride ReadOnly Property TypeParameterKind As TypeParameterKind Implements ITypeParameterSymbol.TypeParameterKind
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (4)
34Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 98Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 99If(TypeOf Me.ContainingSymbol Is NamedTypeSymbol, TypeParameterKind.Type, 100TypeParameterKind.Cref)),
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
123DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (7)
Symbols\EETypeParameterSymbol.vb (1)
85Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind
Symbols\SimpleTypeParameterSymbol.vb (6)
25Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 26If(TypeOf Me.ContainingSymbol Is NamedTypeSymbol, TypeParameterKind.Type, 27TypeParameterKind.Cref)), 43Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 45Return If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, TypeParameterKind.Type)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
123DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\GetSemanticInfoTests.vb (2)
4701Assert.NotEqual(tpSymbol1.TypeParameterKind, TypeParameterKind.Method) 4708Assert.Equal(tpSymbol1.TypeParameterKind, TypeParameterKind.Method)
Microsoft.CodeAnalysis.Workspaces (26)
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
18=> symbol.TypeParameterKind == TypeParameterKind.Method;
FindSymbols\FindReferences\Finders\TypeParameterSymbolReferenceFinder.cs (1)
16=> symbol.TypeParameterKind != TypeParameterKind.Method;
Recommendations\AbstractRecommendationService.cs (1)
107return ((ITypeParameterSymbol)symbol).TypeParameterKind != TypeParameterKind.Cref;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
77if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
501if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (9)
618(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 619(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 620x.TypeParameterKind == TypeParameterKind.Cref); 622(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 623(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 624y.TypeParameterKind == TypeParameterKind.Cref); 635if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 640if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 647if (x.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
262(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 263(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 264x.TypeParameterKind == TypeParameterKind.Cref); 270if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 275if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 282if (x.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
177TypeParameterKind: TypeParameterKind.Cref,
Microsoft.VisualStudio.LanguageServices (2)
Progression\GraphNodeIdCreation.cs (2)
82if (typeParameter.TypeParameterKind == TypeParameterKind.Type) 259if (typeParameterSymbol.TypeParameterKind == TypeParameterKind.Method)