1 write to DiagnosticBag
Microsoft.CodeAnalysis (1)
Binding\BindingDiagnosticBag.cs (1)
25
DiagnosticBag
= diagnosticBag;
24 references to DiagnosticBag
Microsoft.CodeAnalysis (24)
Binding\BindingDiagnosticBag.cs (17)
28
[MemberNotNullWhen(true, nameof(
DiagnosticBag
))]
29
internal bool AccumulatesDiagnostics =>
DiagnosticBag
is object;
33
DiagnosticBag
?.AddRange(diagnostics);
38
DiagnosticBag
?.AddRange(diagnostics);
43
Debug.Assert(
DiagnosticBag
is object);
44
return
DiagnosticBag
?.HasAnyResolvedErrors() == true;
49
Debug.Assert(
DiagnosticBag
is object);
50
return
DiagnosticBag
?.HasAnyErrors() == true;
55
DiagnosticBag
?.Add(diag);
79
DiagnosticBag
?.Free();
85
return new ReadOnlyBindingDiagnostic<TAssemblySymbol>(
DiagnosticBag
?.ToReadOnly(forceDiagnosticResolution) ?? default, DependenciesBag?.ToImmutableArray() ?? default);
103
DiagnosticBag
?.Clear();
118
AddRange(other.
DiagnosticBag
);
128
DiagnosticBag
?.AddRange(bag);
225
if (
DiagnosticBag
is DiagnosticBag diagnosticBag)
303
if (
DiagnosticBag
is object)
305
return ReportUseSiteDiagnostic(info,
DiagnosticBag
, getLocation(data));
Diagnostic\CommonMessageProvider.cs (7)
264
if (diagnostics.
DiagnosticBag
is DiagnosticBag diagnosticBag)
274
if (diagnostics.
DiagnosticBag
is DiagnosticBag diagnosticBag)
284
if (diagnostics.
DiagnosticBag
is DiagnosticBag diagnosticBag)
294
if (diagnostics.
DiagnosticBag
is DiagnosticBag diagnosticBag)
304
if (diagnostics.
DiagnosticBag
is DiagnosticBag diagnosticBag)
314
if (diagnostics.
DiagnosticBag
is DiagnosticBag diagnosticBag)
324
if (diagnostics.
DiagnosticBag
is DiagnosticBag diagnosticBag)