404 references to TypeParameterKind
GenerateDocumentationAndConfigFiles (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 (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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Metrics (19)
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 (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\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)
Metrics.Legacy (19)
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 (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\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 (1)
Symbols\ITypeParameterSymbol.cs (1)
33TypeParameterKind TypeParameterKind { get; }
Microsoft.CodeAnalysis.Analyzers (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 (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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Microsoft.CodeAnalysis.AnalyzerUtilities (19)
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 (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\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.BannedApiAnalyzers (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 (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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Microsoft.CodeAnalysis.CodeStyle (19)
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 (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\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\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)
2127if (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)
472public override TypeParameterKind TypeParameterKind 476return TypeParameterKind.Type; 618public sealed override TypeParameterKind TypeParameterKind 622return TypeParameterKind.Method;
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeParameterSymbol.cs (2)
27public override TypeParameterKind TypeParameterKind => TypeParameterKind.Type;
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
227public 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)
119public 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)
117if (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)
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\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
337extensionParameter.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)
694Contract.ThrowIfTrue(symbol.TypeParameterKind == TypeParameterKind.Cref);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
278if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Cref })
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (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 (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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Microsoft.CodeAnalysis.PublicApiAnalyzers (19)
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 (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\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.ResxSourceGenerator (19)
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 (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\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.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)
996If 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)
980If 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)
122DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (7)
Symbols\EETypeParameterSymbol.vb (1)
84Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind
Symbols\SimpleTypeParameterSymbol.vb (6)
24Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 25If(TypeOf Me.ContainingSymbol Is NamedTypeSymbol, TypeParameterKind.Type, 26TypeParameterKind.Cref)), 42Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 44Return If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, TypeParameterKind.Type)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
122DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\GetSemanticInfoTests.vb (2)
4697Assert.NotEqual(tpSymbol1.TypeParameterKind, TypeParameterKind.Method) 4704Assert.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)
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 (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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
178TypeParameterKind: TypeParameterKind.Cref,
Roslyn.Diagnostics.Analyzers (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 (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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;
Test.Utilities (19)
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 (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\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)
Text.Analyzers (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 (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\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\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (3)
62public TypeParameterKind TypeParameterKind 67? TypeParameterKind.Method 68: TypeParameterKind.Type;