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