32 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 (15)
Microsoft.NetCore.Analyzers\Performance\DoNotUseCountWhenAnyCanBeUsed.Fixer.cs (7)
35
UseCountProperlyAnalyzer
.CA1827,
36
UseCountProperlyAnalyzer
.CA1828);
64
diagnostic.Properties.TryGetValue(
UseCountProperlyAnalyzer
.OperationKey, out var operation) &&
92
!diagnostic.Properties.TryGetValue(
UseCountProperlyAnalyzer
.OperationKey, out var operation) ||
98
var shouldNegate = diagnostic.Properties.ContainsKey(
UseCountProperlyAnalyzer
.ShouldNegateKey);
134
=> diagnostic.Properties.ContainsKey(
UseCountProperlyAnalyzer
.IsAsyncKey) ||
135
diagnostic.Id ==
UseCountProperlyAnalyzer
.CA1828;
Microsoft.NetCore.Analyzers\Performance\PreferIsEmptyOverCount.Fixer.cs (5)
20
public sealed override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
UseCountProperlyAnalyzer
.CA1836);
53
string operationKey = properties[
UseCountProperlyAnalyzer
.OperationKey]!;
56
bool shouldNegate = properties.ContainsKey(
UseCountProperlyAnalyzer
.ShouldNegateKey);
68
generator.IdentifierName(
UseCountProperlyAnalyzer
.IsEmpty) :
69
generator.MemberAccessExpression(objectExpression,
UseCountProperlyAnalyzer
.IsEmpty);
Microsoft.NetCore.Analyzers\Performance\UsePropertyInsteadOfCountMethodWhenAvailable.Fixer.cs (3)
28
public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(
UseCountProperlyAnalyzer
.CA1829);
43
context.Diagnostics[0].Properties.TryGetValue(
UseCountProperlyAnalyzer
.PropertyNameKey, out var propertyName) &&
58
!diagnostic.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