220 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 (9)
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); 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Microsoft.CodeAnalysis (1)
Symbols\ITypeParameterSymbol.cs (1)
33TypeParameterKind TypeParameterKind { get; }
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 (9)
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); 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Microsoft.CodeAnalysis.AnalyzerUtilities (19)
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 (9)
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); 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CodeStyle (19)
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 (9)
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); 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CodeStyle.Fixes (3)
src\roslyn\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)
2141if (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)
462public override TypeParameterKind TypeParameterKind 466return TypeParameterKind.Type; 608public sealed override TypeParameterKind TypeParameterKind 612return TypeParameterKind.Method;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (2)
27public override TypeParameterKind TypeParameterKind => TypeParameterKind.Type;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
232public override TypeParameterKind TypeParameterKind => TypeParameterKind.Type;
Symbols\Synthesized\SynthesizedTypeParameterSymbol.cs (6)
30Debug.Assert(this.TypeParameterKind == (ContainingSymbol is MethodSymbol ? TypeParameterKind.Method : 31(ContainingSymbol is NamedTypeSymbol ? TypeParameterKind.Type : 32TypeParameterKind.Cref)), 43public 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)
119public abstract TypeParameterKind TypeParameterKind { get; }
Symbols\TypeWithAnnotations.cs (1)
212if (((TypeParameterSymbol)typeSymbol).TypeParameterKind == TypeParameterKind.Cref)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
50public override TypeParameterKind TypeParameterKind
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\roslyn\src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
950TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }] 966if (originalCreateMethod.Parameters.All(static p => p.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method })) 971if (originalCreateMethod.Parameters is [{ IsParams: true, Type: IArrayTypeSymbol { ElementType: ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } } }]) 997TypeArguments: [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)
950TypeArguments: [ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method }] 966if (originalCreateMethod.Parameters.All(static p => p.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method })) 971if (originalCreateMethod.Parameters is [{ IsParams: true, Type: IArrayTypeSymbol { ElementType: ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } } }]) 997TypeArguments: [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 (16)
Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (9)
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); 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (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 (19)
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 (9)
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); 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.Workspaces (28)
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;
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 (9)
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); 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\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)
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 (9)
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); 637if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex) 642if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 649if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
267(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 268(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 269x.TypeParameterKind == TypeParameterKind.Cref); 275if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 280if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 287if (x.TypeParameterKind == TypeParameterKind.Cref)
src\roslyn\src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;