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