4 implementations of TypeParameterKind
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62public TypeParameterKind TypeParameterKind
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeParameterSymbol.cs (1)
44TypeParameterKind ITypeParameterSymbol.TypeParameterKind
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeParameterSymbol.vb (1)
91Public MustOverride ReadOnly Property TypeParameterKind As TypeParameterKind Implements ITypeParameterSymbol.TypeParameterKind
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62public TypeParameterKind TypeParameterKind
85 references to TypeParameterKind
Microsoft.CodeAnalysis.CodeStyle (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 621(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 622x.TypeParameterKind == TypeParameterKind.Cref); 624(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 625(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 626y.TypeParameterKind == TypeParameterKind.Cref); 629x.TypeParameterKind != y.TypeParameterKind) 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 273Hash.Combine((int)x.TypeParameterKind, currentHash)); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
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)
118if (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)
118if (info.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.Extensions.Package (19)
Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 621(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 622x.TypeParameterKind == TypeParameterKind.Cref); 624(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 625(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 626y.TypeParameterKind == TypeParameterKind.Cref); 629x.TypeParameterKind != y.TypeParameterKind) 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 273Hash.Combine((int)x.TypeParameterKind, currentHash)); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.Features (5)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
336extensionParameter.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
134if (!capturedTypeParameters.Any(static tp => tp.TypeParameterKind == TypeParameterKind.Method)) 143if (!capturedTypeParameters.Any(static tp => tp.TypeParameterKind == TypeParameterKind.Type))
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
693Contract.ThrowIfTrue(symbol.TypeParameterKind == TypeParameterKind.Cref);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
280if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Cref })
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeParameterSymbol.vb (1)
91Public MustOverride ReadOnly Property TypeParameterKind As TypeParameterKind Implements ITypeParameterSymbol.TypeParameterKind
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)
17=> symbol.TypeParameterKind == TypeParameterKind.Method;
FindSymbols\FindReferences\Finders\TypeParameterSymbolReferenceFinder.cs (1)
16=> symbol.TypeParameterKind != TypeParameterKind.Method;
Recommendations\AbstractRecommendationService.cs (1)
103return ((ITypeParameterSymbol)symbol).TypeParameterKind != TypeParameterKind.Cref;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 621(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 622x.TypeParameterKind == TypeParameterKind.Cref); 624(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 625(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 626y.TypeParameterKind == TypeParameterKind.Cref); 629x.TypeParameterKind != y.TypeParameterKind) 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 273Hash.Combine((int)x.TypeParameterKind, currentHash)); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
177TypeParameterKind: TypeParameterKind.Cref,