255 references to TypeParameterKind
GenerateDocumentationAndConfigFiles (22)
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\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
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\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\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
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\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\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
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\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\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
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)
2085if (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)
784Contract.ThrowIfTrue(symbol.TypeParameterKind == TypeParameterKind.Cref);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
397if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Cref })
Microsoft.CodeAnalysis.ResxSourceGenerator (19)
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\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
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.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)
983If 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\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
122DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.Features (1)
src\roslyn\src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
122DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
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\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\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
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\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\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
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;