7 references to UsageLocations
Microsoft.CodeAnalysis.NetAnalyzers (7)
Microsoft.NetCore.Analyzers\Performance\PreferDictionaryTryMethodsOverContainsKeyGuardAnalyzer.cs (7)
185
if (usageContext.
UsageLocations
.Count == 0)
192
usageContext.
UsageLocations
.Add(usageContext.SetterLocation);
195
var diagnostic = containsOperation.CreateDiagnostic(diagnosticDescriptor, usageContext.
UsageLocations
.ToImmutable(), null);
351
usageContext.
UsageLocations
.Add(invocation.Syntax.GetLocation());
384
usageContext.
UsageLocations
.Add(declaration.Children.Count() is 1
396
usageContext.
UsageLocations
.Add(declarationGroup.Declarations.Length is 1
402
usageContext.
UsageLocations
.Add(indexer.Syntax.GetLocation());