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