136 references to TypeParameterKind
Microsoft.CodeAnalysis (1)
Symbols\ITypeParameterSymbol.cs (1)
33TypeParameterKind TypeParameterKind { get; }
Microsoft.CodeAnalysis.CodeStyle (18)
SymbolEquivalenceComparer.EquivalenceVisitor.cs (9)
603(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 604(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 605x.TypeParameterKind == TypeParameterKind.Cref); 607(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 608(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 609y.TypeParameterKind == TypeParameterKind.Cref); 620if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 625if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 632if (x.TypeParameterKind == TypeParameterKind.Cref)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
263(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 264(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 265x.TypeParameterKind == TypeParameterKind.Cref); 271if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 276if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 283if (x.TypeParameterKind == TypeParameterKind.Cref)
SymbolKey.SymbolKeyWriter.cs (1)
495if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
CodeGenerationTypeParameterSymbol.cs (3)
72public TypeParameterKind TypeParameterKind 77? TypeParameterKind.Method 78: TypeParameterKind.Type;
ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
85if (symbol.TypeParameterKind == TypeParameterKind.Method || !_onlyMethodTypeParameters)
Microsoft.CodeAnalysis.CSharp (29)
Binder\Binder_Lookup.cs (1)
2035if (type.TypeParameterKind == TypeParameterKind.Cref)
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeParameterSymbol.cs (2)
34public override TypeParameterKind TypeParameterKind 38return TypeParameterKind.Type;
Symbols\ErrorTypeSymbol.ErrorTypeParameterSymbol.cs (2)
34public override TypeParameterKind TypeParameterKind 38return TypeParameterKind.Type;
Symbols\Metadata\PE\PETypeParameterSymbol.cs (3)
101public override TypeParameterKind TypeParameterKind 106? TypeParameterKind.Method 107: TypeParameterKind.Type;
Symbols\PublicModel\TypeParameterSymbol.cs (1)
44TypeParameterKind ITypeParameterSymbol.TypeParameterKind
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1069if (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 (6)
466public override TypeParameterKind TypeParameterKind 470return TypeParameterKind.Type; 604public override TypeParameterKind TypeParameterKind 608return TypeParameterKind.Method; 858public override TypeParameterKind TypeParameterKind 862return TypeParameterKind.Method;
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\TypeParameterSymbol.cs (1)
118public abstract TypeParameterKind TypeParameterKind { get; }
Symbols\TypeWithAnnotations.cs (1)
204if (((TypeParameterSymbol)typeSymbol).TypeParameterKind == TypeParameterKind.Cref)
Symbols\Wrapped\WrappedTypeParameterSymbol.cs (1)
48public override TypeParameterKind TypeParameterKind
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (7)
Symbols\EETypeParameterSymbol.cs (1)
121public override TypeParameterKind TypeParameterKind
Symbols\SimpleTypeParameterSymbol.cs (6)
30Debug.Assert(this.TypeParameterKind == (ContainingSymbol is MethodSymbol ? TypeParameterKind.Method : 31(ContainingSymbol is NamedTypeSymbol ? TypeParameterKind.Type : 32TypeParameterKind.Cref)), 46public override TypeParameterKind TypeParameterKind 48get { return ContainingSymbol is MethodSymbol ? TypeParameterKind.Method : TypeParameterKind.Type; }
Microsoft.CodeAnalysis.CSharp.Features (1)
GenerateMember\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
126if (info.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.Features (5)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
137if (!capturedTypeParameters.Any(static tp => tp.TypeParameterKind == TypeParameterKind.Method)) 146if (!capturedTypeParameters.Any(static tp => tp.TypeParameterKind == TypeParameterKind.Type))
IntroduceVariable\AbstractIntroduceVariableService.State_Parameter.cs (1)
29.Where(tp => tp.TypeParameterKind == TypeParameterKind.Method)
LanguageServices\SymbolDisplayService\AbstractSymbolDisplayService.AbstractSymbolDescriptionBuilder.cs (1)
731Contract.ThrowIfTrue(symbol.TypeParameterKind == TypeParameterKind.Cref);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
266if (symbol is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Cref })
Microsoft.CodeAnalysis.VisualBasic (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)
93Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 96TypeParameterKind.Method, 97TypeParameterKind.Type)
Symbols\ReducedExtensionMethodSymbol.vb (2)
689Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 691Return TypeParameterKind.Method
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
1006If typeParameter.TypeParameterKind = TypeParameterKind.Method Then
Symbols\Retargeting\RetargetingTypeParameterSymbol.vb (1)
59Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind
Symbols\Source\CrefTypeParameterSymbol.vb (2)
104Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 106Return TypeParameterKind.Cref
Symbols\Source\SourceNamedTypeSymbol.vb (1)
976If typeParameter.TypeParameterKind = TypeParameterKind.Method Then
Symbols\Source\SourceTypeParameterSymbol.vb (4)
233Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 235Return TypeParameterKind.Type 312Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 314Return 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 92Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 93If(TypeOf Me.ContainingSymbol Is NamedTypeSymbol, TypeParameterKind.Type, 94TypeParameterKind.Cref)),
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (7)
Symbols\EETypeParameterSymbol.vb (1)
79Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind
Symbols\SimpleTypeParameterSymbol.vb (6)
25Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 26If(TypeOf Me.ContainingSymbol Is NamedTypeSymbol, TypeParameterKind.Type, 27TypeParameterKind.Cref)), 43Public Overrides ReadOnly Property TypeParameterKind As TypeParameterKind 45Return If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, TypeParameterKind.Type)
Microsoft.CodeAnalysis.VisualBasic.Features (1)
GenerateMember\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
123DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\GetSemanticInfoTests.vb (2)
4702Assert.NotEqual(tpSymbol1.TypeParameterKind, TypeParameterKind.Method) 4709Assert.Equal(tpSymbol1.TypeParameterKind, TypeParameterKind.Method)
Microsoft.CodeAnalysis.Workspaces (26)
CodeGenerationTypeParameterSymbol.cs (3)
72public TypeParameterKind TypeParameterKind 77? TypeParameterKind.Method 78: TypeParameterKind.Type;
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
16=> symbol.TypeParameterKind == TypeParameterKind.Method;
FindSymbols\FindReferences\Finders\TypeParameterSymbolReferenceFinder.cs (1)
15=> symbol.TypeParameterKind != TypeParameterKind.Method;
ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
85if (symbol.TypeParameterKind == TypeParameterKind.Method || !_onlyMethodTypeParameters)
Recommendations\AbstractRecommendationService.cs (1)
107return ((ITypeParameterSymbol)symbol).TypeParameterKind != TypeParameterKind.Cref;
SymbolEquivalenceComparer.EquivalenceVisitor.cs (9)
603(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 604(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 605x.TypeParameterKind == TypeParameterKind.Cref); 607(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 608(y.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) || 609y.TypeParameterKind == TypeParameterKind.Cref); 620if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 625if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 632if (x.TypeParameterKind == TypeParameterKind.Cref)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (6)
263(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 264(x.TypeParameterKind == TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) || 265x.TypeParameterKind == TypeParameterKind.Cref); 271if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex) 276if (x.TypeParameterKind == TypeParameterKind.Type && x.ContainingType.IsAnonymousType) 283if (x.TypeParameterKind == TypeParameterKind.Cref)
SymbolKey.SymbolKeyWriter.cs (1)
495if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
SymbolKey.TypeParameterSymbolKey.cs (1)
17if (symbol.TypeParameterKind == TypeParameterKind.Cref)
Workspace\Solution\SolutionState.SymbolToProjectId.cs (1)
133typeParameter.TypeParameterKind == TypeParameterKind.Cref)
Microsoft.VisualStudio.LanguageServices (2)
Progression\GraphNodeIdCreation.cs (2)
83if (typeParameter.TypeParameterKind == TypeParameterKind.Type) 258if (typeParameterSymbol.TypeParameterKind == TypeParameterKind.Method)