30 references to UseCountProperlyAnalyzer
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (9)
Microsoft.NetCore.Analyzers\Performance\CSharpDoNotUseCountWhenAnyCanBeUsed.Fixer.cs (5)
39
case
UseCountProperlyAnalyzer
.OperationEqualsInstance:
54
case
UseCountProperlyAnalyzer
.OperationEqualsArgument:
69
case
UseCountProperlyAnalyzer
.OperationBinaryLeft:
83
case
UseCountProperlyAnalyzer
.OperationBinaryRight:
97
case
UseCountProperlyAnalyzer
.OperationIsPattern:
Microsoft.NetCore.Analyzers\Performance\CSharpPreferIsEmptyOverCount.Fixer.cs (4)
24
case
UseCountProperlyAnalyzer
.OperationBinaryLeft:
31
case
UseCountProperlyAnalyzer
.OperationBinaryRight:
38
case
UseCountProperlyAnalyzer
.OperationEqualsArgument:
45
case
UseCountProperlyAnalyzer
.OperationEqualsInstance:
Microsoft.CodeAnalysis.NetAnalyzers (13)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsed.Fixer.cs (6)
33
UseCountProperlyAnalyzer
.CA1827,
34
UseCountProperlyAnalyzer
.CA1828);
60
var shouldNegateKey = properties.ContainsKey(
UseCountProperlyAnalyzer
.ShouldNegateKey);
61
var isAsync = properties.ContainsKey(
UseCountProperlyAnalyzer
.IsAsyncKey) ||
62
context.Diagnostics[0].Id ==
UseCountProperlyAnalyzer
.CA1828;
65
properties.TryGetValue(
UseCountProperlyAnalyzer
.OperationKey, out var operation) &&
Microsoft.NetCore.Analyzers\Performance\PreferIsEmptyOverCount.Fixer.cs (5)
19
public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
UseCountProperlyAnalyzer
.CA1836);
40
string operationKey = properties[
UseCountProperlyAnalyzer
.OperationKey]!;
43
bool shouldNegate = properties.ContainsKey(
UseCountProperlyAnalyzer
.ShouldNegateKey);
57
generator.IdentifierName(
UseCountProperlyAnalyzer
.IsEmpty) :
58
generator.MemberAccessExpression(objectExpression,
UseCountProperlyAnalyzer
.IsEmpty);
Microsoft.NetCore.Analyzers\Performance\UsePropertyInsteadOfCountMethodWhenAvailable.Fixer.cs (2)
28
public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
UseCountProperlyAnalyzer
.CA1829);
55
context.Diagnostics[0].Properties.TryGetValue(
UseCountProperlyAnalyzer
.PropertyNameKey, out var propertyName) &&
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (8)
Microsoft.NetCore.Analyzers\Performance\BasicDoNotUseCountWhenAnyCanBeUsedFixer.vb (4)
31
Case
UseCountProperlyAnalyzer
.OperationEqualsInstance
51
Case
UseCountProperlyAnalyzer
.OperationEqualsArgument
65
Case
UseCountProperlyAnalyzer
.OperationBinaryLeft
78
Case
UseCountProperlyAnalyzer
.OperationBinaryRight
Microsoft.NetCore.Analyzers\Performance\BasicPreferIsEmptyOverCount.Fixer.vb (4)
22
Case
UseCountProperlyAnalyzer
.OperationBinaryLeft
28
Case
UseCountProperlyAnalyzer
.OperationBinaryRight
34
Case
UseCountProperlyAnalyzer
.OperationEqualsArgument
40
Case
UseCountProperlyAnalyzer
.OperationEqualsInstance