55 references to Method
Microsoft.CodeAnalysis.CodeStyle (8)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
77if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
501if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (3)
618(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 635if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
262(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 270if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
67? TypeParameterKind.Method
Microsoft.CodeAnalysis.CSharp (7)
Symbols\Metadata\PE\PETypeParameterSymbol.cs (1)
107? TypeParameterKind.Method
Symbols\Retargeting\RetargetingSymbolTranslator.cs (1)
1046if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
Symbols\Source\IndexedTypeParameterSymbol.cs (1)
42return TypeParameterKind.Method;
Symbols\Source\SourceTypeParameterSymbol.cs (1)
621return 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;
Symbols\SynthesizedSimpleMethodTypeParameterSymbol.cs (1)
39get { return TypeParameterKind.Method; }
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)
121if (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)
121if (info.Type is ITypeParameterSymbol { TypeParameterKind: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.Features (2)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (1)
135if (!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)
103TypeParameterKind.Method,
Symbols\ReducedExtensionMethodSymbol.vb (1)
703Return TypeParameterKind.Method
Symbols\Retargeting\RetargetingSymbolTranslator.vb (1)
999If typeParameter.TypeParameterKind = TypeParameterKind.Method Then
Symbols\Source\SourceNamedTypeSymbol.vb (1)
979If typeParameter.TypeParameterKind = TypeParameterKind.Method Then
Symbols\Source\SourceTypeParameterSymbol.vb (1)
328Return 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)
98Debug.Assert(Me.TypeParameterKind = If(TypeOf Me.ContainingSymbol Is MethodSymbol, TypeParameterKind.Method,
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
123DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.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)
src\Analyzers\VisualBasic\CodeFixes\GenerateParameterizedMember\VisualBasicGenerateParameterizedMemberService.vb (1)
123DirectCast(info.Type, ITypeParameterSymbol).TypeParameterKind = TypeParameterKind.Method Then
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\GetSemanticInfoTests.vb (2)
4701Assert.NotEqual(tpSymbol1.TypeParameterKind, TypeParameterKind.Method) 4708Assert.Equal(tpSymbol1.TypeParameterKind, TypeParameterKind.Method)
Microsoft.CodeAnalysis.Workspaces (11)
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (1)
18=> symbol.TypeParameterKind == TypeParameterKind.Method;
FindSymbols\FindReferences\Finders\TypeParameterSymbolReferenceFinder.cs (1)
16=> symbol.TypeParameterKind != TypeParameterKind.Method;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
77if (symbol.TypeParameterKind == TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
501if (typeParameter.TypeParameterKind == TypeParameterKind.Method)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
15Contract.ThrowIfFalse(symbol.TypeParameterKind == TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.EquivalenceVisitor.cs (3)
618(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 622(y.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) || 635if (x.TypeParameterKind == TypeParameterKind.Method && compareMethodTypeParametersByIndex)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (2)
262(x.TypeParameterKind == TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) || 270if (x.TypeParameterKind == TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
67? TypeParameterKind.Method
Microsoft.VisualStudio.LanguageServices (1)
Progression\GraphNodeIdCreation.cs (1)
259if (typeParameterSymbol.TypeParameterKind == TypeParameterKind.Method)