47 references to Method
Microsoft.CodeAnalysis.CodeStyle (7)
SymbolEquivalenceComparer.EquivalenceVisitor.cs (3)
603(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 607(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 620if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
263(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 271if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
SymbolKey.SymbolKeyWriter.cs (1)
495if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
Microsoft.CodeAnalysis.CodeStyle.Fixes (2)
CodeGenerationTypeParameterSymbol.cs (1)
77? TypeParameterKind.Method
ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
85if (symbol.TypeParameterKind == TypeParameterKind.Method || !_onlyMethodTypeParameters)
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
106? TypeParameterKind.Method
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1069if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
42return TypeParameterKind.Method;
Symbols\Source\SourceTypeParameterSymbol.cs (2)
608return TypeParameterKind.Method; 862return TypeParameterKind.Method;
Symbols\Synthesized\SynthesizedSubstitutedTypeParameterSymbol.cs (2)
22Debug.Assert(this.TypeParameterKind == (ContainingSymbol is MethodSymbol ? TypeParameterKind.Method : 33public override TypeParameterKind TypeParameterKind => ContainingSymbol is MethodSymbol ? TypeParameterKind.Method : TypeParameterKind.Type;
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\SimpleTypeParameterSymbol.cs (2)
30Debug.Assert(this.TypeParameterKind == (ContainingSymbol is MethodSymbol ? TypeParameterKind.Method : 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 (2)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
137if (!capturedTypeParameters.Any(static tp => tp.TypeParameterKind == TypeParameterKind.Method))
IntroduceVariable\AbstractIntroduceVariableService.State_Parameter.cs (1)
29.Where(tp => tp.TypeParameterKind == TypeParameterKind.Method)
Microsoft.CodeAnalysis.VisualBasic (9)
Symbols\IndexedTypeParameterSymbol.vb (1)
88Return TypeParameterKind.Method
Symbols\Metadata\PE\PETypeParameterSymbol.vb (1)
96TypeParameterKind.Method,
Symbols\ReducedExtensionMethodSymbol.vb (1)
691Return TypeParameterKind.Method
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
1006If typeParameter.TypeParameterKind = TypeParameterKind.Method Then
Symbols\Source\SourceNamedTypeSymbol.vb (1)
976If typeParameter.TypeParameterKind = TypeParameterKind.Method Then
Symbols\Source\SourceTypeParameterSymbol.vb (1)
314Return TypeParameterKind.Method
Symbols\SynthesizedSymbols\SynthesizedClonedTypeParameterSymbol.vb (2)
49Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 58TypeParameterKind.Method,
Symbols\Wrapped\WrappedTypeParameterSymbol.vb (1)
92Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method,
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (2)
Symbols\SimpleTypeParameterSymbol.vb (2)
25Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method, 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 (11)
CodeGenerationTypeParameterSymbol.cs (1)
77? TypeParameterKind.Method
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)
SymbolEquivalenceComparer.EquivalenceVisitor.cs (3)
603(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 607(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 620if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
263(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 271if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
SymbolKey.SymbolKeyWriter.cs (1)
495if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphNodeIdCreation.cs (1)
258if (typeParameterSymbol.TypeParameterKind == TypeParameterKind.Method)