10 implementations of TypeParameterKind
GenerateDocumentationAndConfigFiles (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62
public TypeParameterKind
TypeParameterKind
Microsoft.CodeAnalysis.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62
public TypeParameterKind
TypeParameterKind
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62
public TypeParameterKind
TypeParameterKind
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62
public TypeParameterKind
TypeParameterKind
Microsoft.CodeAnalysis.CSharp (1)
Symbols\PublicModel\TypeParameterSymbol.cs (1)
44
TypeParameterKind ITypeParameterSymbol.
TypeParameterKind
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62
public TypeParameterKind
TypeParameterKind
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeParameterSymbol.vb (1)
91
Public MustOverride ReadOnly Property
TypeParameterKind
As TypeParameterKind Implements ITypeParameterSymbol.TypeParameterKind
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62
public TypeParameterKind
TypeParameterKind
Roslyn.Diagnostics.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62
public TypeParameterKind
TypeParameterKind
Text.Analyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeGeneration\Symbols\CodeGenerationTypeParameterSymbol.cs (1)
62
public TypeParameterKind
TypeParameterKind
350 references to TypeParameterKind
GenerateDocumentationAndConfigFiles (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Metrics (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Metrics.Legacy (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.Analyzers (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.AnalyzerUtilities (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.BannedApiAnalyzers (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CodeStyle (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.CSharp.CodeStyle (4)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
937
TypeArguments: [ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method }]
953
if (originalCreateMethod.Parameters.All(static p => p.Type is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method }))
958
if (originalCreateMethod.Parameters is [{ IsParams: true, Type: IArrayTypeSymbol { ElementType: ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } } }])
984
TypeArguments: [ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method }]
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
117
if (info.Type is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.CSharp.Features (5)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\UseCollectionExpressionHelpers.cs (4)
937
TypeArguments: [ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method }]
953
if (originalCreateMethod.Parameters.All(static p => p.Type is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method }))
958
if (originalCreateMethod.Parameters is [{ IsParams: true, Type: IArrayTypeSymbol { ElementType: ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } } }])
984
TypeArguments: [ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method }]
src\Analyzers\CSharp\CodeFixes\GenerateParameterizedMember\CSharpGenerateParameterizedMemberService.cs (1)
117
if (info.Type is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
Microsoft.CodeAnalysis.Extensions.Package (19)
Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.Features (6)
Completion\Providers\ImportCompletionProvider\ExtensionMethodImportCompletionHelper.SymbolComputer.cs (1)
337
extensionParameter.Type is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
135
if (!capturedTypeParameters.Any(static tp => tp.
TypeParameterKind
== TypeParameterKind.Method))
144
if (!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)
694
Contract.ThrowIfTrue(symbol.
TypeParameterKind
== TypeParameterKind.Cref);
QuickInfo\CommonSemanticQuickInfoProvider.cs (1)
278
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Cref })
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.PublicApiAnalyzers (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.ResxSourceGenerator (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\TypeParameterSymbol.vb (1)
91
Public MustOverride ReadOnly Property TypeParameterKind As TypeParameterKind Implements ITypeParameterSymbol.
TypeParameterKind
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (2)
Semantics\GetSemanticInfoTests.vb (2)
4697
Assert.NotEqual(tpSymbol1.
TypeParameterKind
, TypeParameterKind.Method)
4704
Assert.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)
103
return ((ITypeParameterSymbol)symbol).
TypeParameterKind
!= TypeParameterKind.Cref;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Workspace\Solution\SolutionCompilationState.SymbolToProjectId.cs (1)
178
TypeParameterKind
: TypeParameterKind.Cref,
Roslyn.Diagnostics.Analyzers (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Test.Utilities (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
Text.Analyzers (22)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyWriter.cs (1)
495
if (symbol is ITypeParameterSymbol {
TypeParameterKind
: TypeParameterKind.Method } typeParameter)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterOrdinalSymbolKey.cs (1)
13
Contract.ThrowIfFalse(symbol.
TypeParameterKind
== TypeParameterKind.Method);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.TypeParameterSymbolKey.cs (1)
17
if (symbol.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\ITypeSymbolExtensions.CollectTypeParameterSymbolsVisitor.cs (1)
82
if (symbol.
TypeParameterKind
== TypeParameterKind.Method || !onlyMethodTypeParameters)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.EquivalenceVisitor.cs (11)
620
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
621
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
622
x.
TypeParameterKind
== TypeParameterKind.Cref);
624
(y.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(y.DeclaringMethod!)) ||
625
(y.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(y.ContainingType)) ||
626
y.
TypeParameterKind
== TypeParameterKind.Cref);
629
x.
TypeParameterKind
!= y.
TypeParameterKind
)
637
if (x.
TypeParameterKind
== TypeParameterKind.Method && compareMethodTypeParametersByIndex)
642
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
649
if (x.
TypeParameterKind
== TypeParameterKind.Cref)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.GetHashCodeVisitor.cs (7)
267
(x.
TypeParameterKind
== TypeParameterKind.Method && IsConstructedFromSelf(x.DeclaringMethod!)) ||
268
(x.
TypeParameterKind
== TypeParameterKind.Type && IsConstructedFromSelf(x.ContainingType)) ||
269
x.
TypeParameterKind
== TypeParameterKind.Cref);
273
Hash.Combine((int)x.
TypeParameterKind
, currentHash));
275
if (x.
TypeParameterKind
== TypeParameterKind.Method && _compareMethodTypeParametersByIndex)
280
if (x.
TypeParameterKind
== TypeParameterKind.Type && x.ContainingType.IsAnonymousType)
287
if (x.
TypeParameterKind
== TypeParameterKind.Cref)