6 implementations of TypeParameterKind
GenerateDocumentationAndConfigFiles (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62public TypeParameterKind TypeParameterKind
Microsoft.CodeAnalysis.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62public TypeParameterKind TypeParameterKind
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\roslyn\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.Workspaces (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62public TypeParameterKind TypeParameterKind
Roslyn.Diagnostics.Analyzers (1)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62public TypeParameterKind TypeParameterKind
197 references to TypeParameterKind
GenerateDocumentationAndConfigFiles (22)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
617(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 618(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 619x.TypeParameterKind == TypeParameterKind.Cref); 621(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 623y.TypeParameterKind == TypeParameterKind.Cref); 626x.TypeParameterKind != y.TypeParameterKind) 634if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 639if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 646if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
264(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 265(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 266x.TypeParameterKind == TypeParameterKind.Cref); 270Hash.Combine((int)x.TypeParameterKind, currentHash)); 272if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 277if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 284if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.Analyzers (22)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
617(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 618(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 619x.TypeParameterKind == TypeParameterKind.Cref); 621(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 623y.TypeParameterKind == TypeParameterKind.Cref); 626x.TypeParameterKind != y.TypeParameterKind) 634if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 639if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 646if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
264(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 265(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 266x.TypeParameterKind == TypeParameterKind.Cref); 270Hash.Combine((int)x.TypeParameterKind, currentHash)); 272if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 277if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 284if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.AnalyzerUtilities (22)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
617(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 618(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 619x.TypeParameterKind == TypeParameterKind.Cref); 621(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 623y.TypeParameterKind == TypeParameterKind.Cref); 626x.TypeParameterKind != y.TypeParameterKind) 634if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 639if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 646if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
264(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 265(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 266x.TypeParameterKind == TypeParameterKind.Cref); 270Hash.Combine((int)x.TypeParameterKind, currentHash)); 272if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 277if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 284if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CodeStyle (22)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
617(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 618(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 619x.TypeParameterKind == TypeParameterKind.Cref); 621(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 623y.TypeParameterKind == TypeParameterKind.Cref); 626x.TypeParameterKind != y.TypeParameterKind) 634if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 639if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 646if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
264(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 265(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 266x.TypeParameterKind == TypeParameterKind.Cref); 270Hash.Combine((int)x.TypeParameterKind, currentHash)); 272if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 277if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 284if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
952TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }] 968if (originalCreateMethod.Parameters.All(static p => p.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method })) 973if (originalCreateMethod.Parameters is [{ IsParams: true, Type: IArrayTypeSymbol { ElementType: ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } } }]) 999TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }]
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
117if (info.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.CSharp.Features (5)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
952TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }] 968if (originalCreateMethod.Parameters.All(static p => p.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method })) 973if (originalCreateMethod.Parameters is [{ IsParams: true, Type: IArrayTypeSymbol { ElementType: ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } } }]) 999TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }]
src\roslyn\src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
117if (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)
617(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 618(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 619x.TypeParameterKind == TypeParameterKind.Cref); 621(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 623y.TypeParameterKind == TypeParameterKind.Cref); 626x.TypeParameterKind != y.TypeParameterKind) 634if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 639if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 646if (x.TypeParameterKind == TypeParameterKind.Cref)
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
264(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 265(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 266x.TypeParameterKind == TypeParameterKind.Cref); 270Hash.Combine((int)x.TypeParameterKind, currentHash)); 272if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 277if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 284if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.Features (6)
Completion\Providers\ImportCompletionProvider\ExtensionMemberImportCompletionHelper.SymbolComputer.cs (1)
385extensionParameter.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
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)
27.Where(tp => tp.TypeParameterKind == TypeParameterKind.Method)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
790Contract.ThrowIfTrue(symbol.TypeParameterKind == TypeParameterKind.Cref);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
397if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Cref })
Microsoft.CodeAnalysis.ResxSourceGenerator (22)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
617(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 618(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 619x.TypeParameterKind == TypeParameterKind.Cref); 621(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 623y.TypeParameterKind == TypeParameterKind.Cref); 626x.TypeParameterKind != y.TypeParameterKind) 634if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 639if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 646if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
264(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 265(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 266x.TypeParameterKind == TypeParameterKind.Cref); 270Hash.Combine((int)x.TypeParameterKind, currentHash)); 272if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 277if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 284if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.Workspaces (30)
FindSymbols\FindReferences\DependentProjectsFinder.cs (1)
99if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Cref, DeclaringSyntaxReferences: [{ SyntaxTree: var syntaxTree }, ..] })
FindSymbols\FindReferences\Finders\CrefTypeParameterSymbolReferenceFinder.cs (1)
25=> symbol.TypeParameterKind == TypeParameterKind.Cref;
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
24=> symbol.TypeParameterKind == TypeParameterKind.Method;
FindSymbols\FindReferences\Finders\TypeParameterSymbolReferenceFinder.cs (1)
22=> symbol.TypeParameterKind == TypeParameterKind.Type;
FindSymbols\FindReferences\FindReferencesSearchEngine.PartialParts.cs (2)
76ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter 90ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter => IsOnPartialImplementationPart(typeParameter.ContainingSymbol),
Recommendations\AbstractRecommendationService.cs (1)
104return ((ITypeParameterSymbol)symbol).TypeParameterKind != TypeParameterKind.Cref;
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
617(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 618(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 619x.TypeParameterKind == TypeParameterKind.Cref); 621(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 623y.TypeParameterKind == TypeParameterKind.Cref); 626x.TypeParameterKind != y.TypeParameterKind) 634if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 639if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 646if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
264(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 265(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 266x.TypeParameterKind == TypeParameterKind.Cref); 270Hash.Combine((int)x.TypeParameterKind, currentHash)); 272if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 277if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 284if (x.TypeParameterKind == TypeParameterKind.Cref)
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
176TypeParameterKind: TypeParameterKind.Cref,
Roslyn.Diagnostics.Analyzers (22)
src\60c94c676d650713\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
617(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 618(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 619x.TypeParameterKind == TypeParameterKind.Cref); 621(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 623y.TypeParameterKind == TypeParameterKind.Cref); 626x.TypeParameterKind != y.TypeParameterKind) 634if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 639if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 646if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
264(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 265(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 266x.TypeParameterKind == TypeParameterKind.Cref); 270Hash.Combine((int)x.TypeParameterKind, currentHash)); 272if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 277if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 284if (x.TypeParameterKind == TypeParameterKind.Cref)