1 write to _nonLocalDiagnosticsOpt
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (1)
374
_nonLocalDiagnosticsOpt
= _nonLocalDiagnosticsOpt ?? new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>();
6 references to _nonLocalDiagnosticsOpt
Microsoft.CodeAnalysis (6)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (6)
374
_nonLocalDiagnosticsOpt =
_nonLocalDiagnosticsOpt
?? new Dictionary<DiagnosticAnalyzer, ImmutableArray<Diagnostic>.Builder>();
377
if (!
_nonLocalDiagnosticsOpt
.TryGetValue(analyzer, out currentDiagnostics))
380
_nonLocalDiagnosticsOpt
[analyzer] = currentDiagnostics;
433
if (getNonLocalDiagnostics &&
_nonLocalDiagnosticsOpt
!= null)
435
AddDiagnostics_NoLock(
_nonLocalDiagnosticsOpt
, analysisScope.Analyzers, builder);
515
nonLocalDiagnostics = GetImmutable(analyzersSet, shouldInclude,
_nonLocalDiagnosticsOpt
);