13 references to PreferLengthCountIsEmptyOverAnyAnalyzer
Microsoft.CodeAnalysis.CSharp.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\CSharpPreferLengthCountIsEmptyOverAny.Fixer.cs (1)
38IdentifierName(PreferLengthCountIsEmptyOverAnyAnalyzer.IsEmptyText)
Microsoft.CodeAnalysis.NetAnalyzers (11)
Microsoft.NetCore.Analyzers\Performance\PreferLengthCountIsEmptyOverAny.Fixer.cs (11)
18public override ImmutableArray<string> FixableDiagnosticIds { get; } = ImmutableArray.Create(PreferLengthCountIsEmptyOverAnyAnalyzer.RuleId); 72switch (diagnostic.Properties[PreferLengthCountIsEmptyOverAnyAnalyzer.DiagnosticPropertyKey]) 74case PreferLengthCountIsEmptyOverAnyAnalyzer.IsEmptyText: 78case PreferLengthCountIsEmptyOverAnyAnalyzer.LengthText: 79editor.ReplaceNode(toReplace, (currentNode, _) => ReplaceAnyWithPropertyCheck(currentNode, PreferLengthCountIsEmptyOverAnyAnalyzer.LengthText) ?? currentNode); 82case PreferLengthCountIsEmptyOverAnyAnalyzer.CountText: 83editor.ReplaceNode(toReplace, (currentNode, _) => ReplaceAnyWithPropertyCheck(currentNode, PreferLengthCountIsEmptyOverAnyAnalyzer.CountText) ?? currentNode); 92=> diagnostic.Properties[PreferLengthCountIsEmptyOverAnyAnalyzer.DiagnosticPropertyKey] switch 94PreferLengthCountIsEmptyOverAnyAnalyzer.IsEmptyText => MicrosoftNetCoreAnalyzersResources.PreferIsEmptyOverAnyCodeFixTitle, 95PreferLengthCountIsEmptyOverAnyAnalyzer.LengthText => MicrosoftNetCoreAnalyzersResources.PreferLengthOverAnyCodeFixTitle, 96PreferLengthCountIsEmptyOverAnyAnalyzer.CountText => MicrosoftNetCoreAnalyzersResources.PreferCountOverAnyCodeFixTitle,
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.NetCore.Analyzers\Performance\BasicPreferLengthCountIsEmptyOverAnyFixer.vb (1)
50SyntaxFactory.IdentifierName(PreferLengthCountIsEmptyOverAnyAnalyzer.IsEmptyText)