4 implementations of TypeParameterKind
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
CodeGenerationTypeParameterSymbol.cs (1)
72public 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)
CodeGenerationTypeParameterSymbol.cs (1)
72public TypeParameterKind TypeParameterKind
60 references to TypeParameterKind
Microsoft.CodeAnalysis.CodeStyle (21)
SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
603(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 604(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 605x.TypeParameterKind == TypeParameterKind.Cref); 607(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 608(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 609y.TypeParameterKind == TypeParameterKind.Cref); 612x.TypeParameterKind != y.TypeParameterKind) 620if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 625if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 632if (x.TypeParameterKind == TypeParameterKind.Cref)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
263(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 264(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 265x.TypeParameterKind == TypeParameterKind.Cref); 269Hash.Combine((int)x.TypeParameterKind, currentHash)); 271if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 276if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 283if (x.TypeParameterKind == TypeParameterKind.Cref)
SymbolKey.SymbolKeyWriter.cs (1)
495if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
85if (symbol.TypeParameterKind == TypeParameterKind.Method || !_onlyMethodTypeParameters)
Microsoft.CodeAnalysis.CSharp.Features (1)
GenerateMember\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
126if (info.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.Features (5)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
137if (!capturedTypeParameters.Any(static tp => tp.TypeParameterKind == TypeParameterKind.Method)) 146if (!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)
731Contract.ThrowIfTrue(symbol.TypeParameterKind == TypeParameterKind.Cref);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
266if (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.Features (1)
GenerateMember\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
123DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\GetSemanticInfoTests.vb (2)
4702Assert.NotEqual(tpSymbol1.TypeParameterKind, TypeParameterKind.Method) 4709Assert.Equal(tpSymbol1.TypeParameterKind, TypeParameterKind.Method)
Microsoft.CodeAnalysis.Workspaces (26)
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
16=> symbol.TypeParameterKind == TypeParameterKind.Method;
FindSymbols\FindReferences\Finders\TypeParameterSymbolReferenceFinder.cs (1)
15=> symbol.TypeParameterKind != TypeParameterKind.Method;
ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
85if (symbol.TypeParameterKind == TypeParameterKind.Method || !_onlyMethodTypeParameters)
Recommendations\AbstractRecommendationService.cs (1)
107return ((ITypeParameterSymbol)symbol).TypeParameterKind != TypeParameterKind.Cref;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
603(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 604(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 605x.TypeParameterKind == TypeParameterKind.Cref); 607(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 608(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 609y.TypeParameterKind == TypeParameterKind.Cref); 612x.TypeParameterKind != y.TypeParameterKind) 620if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 625if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 632if (x.TypeParameterKind == TypeParameterKind.Cref)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
263(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 264(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 265x.TypeParameterKind == TypeParameterKind.Cref); 269Hash.Combine((int)x.TypeParameterKind, currentHash)); 271if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 276if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 283if (x.TypeParameterKind == TypeParameterKind.Cref)
SymbolKey.SymbolKeyWriter.cs (1)
495if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
Workspace\Solution\SolutionState.SymbolToProjectId.cs (1)
133typeParameter.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.VisualStudio.LanguageServices (2)
Progression\GraphNodeIdCreation.cs (2)
83if (typeParameter.TypeParameterKind == TypeParameterKind.Type) 258if (typeParameterSymbol.TypeParameterKind == TypeParameterKind.Method)