1 write to diagnostics
Microsoft.CodeAnalysis.CSharp (1)
Lowering\StateMachineRewriter\StateMachineRewriter.cs (1)
60
this.
diagnostics
= diagnostics;
15 references to diagnostics
Microsoft.CodeAnalysis.CSharp (15)
Lowering\AsyncRewriter\AsyncRewriter.AsyncIteratorRewriter.cs (1)
711
diagnostics:
diagnostics
);
Lowering\AsyncRewriter\AsyncRewriter.cs (5)
106
var bag = BindingDiagnosticBag.GetInstance(withDiagnostics: true,
diagnostics
.AccumulatesDependencies);
113
diagnostics
.AddDependencies(bag);
117
diagnostics
.AddRange(bag);
258
startMethod.CheckConstraints(new ConstraintsHelper.CheckConstraintsArgs(F.Compilation, F.Compilation.Conversions, includeNullability: false, F.Syntax.Location,
diagnostics
));
294
diagnostics:
diagnostics
);
Lowering\IteratorRewriter\IteratorRewriter.cs (5)
100
var bag = BindingDiagnosticBag.GetInstance(withDiagnostics: true,
diagnostics
.AccumulatesDependencies);
128
diagnostics
.AddDependencies(bag);
132
diagnostics
.AddRange(bag);
206
diagnostics
.Add(ex.Diagnostic);
343
diagnostics
);
Lowering\StateMachineRewriter\StateMachineRewriter.cs (4)
118
var variablesToHoist = IteratorAndAsyncCaptureWalker.Analyze(F.Compilation, method, body,
diagnostics
.DiagnosticBag);
120
if (
diagnostics
.HasAnyErrors())
205
F.ModuleBuilderOpt.Translate(fieldType, declaratorSyntax,
diagnostics
.DiagnosticBag),
208
diagnostics
.DiagnosticBag,