5 references to ToReadOnly
Microsoft.CodeAnalysis (5)
Binding\BindingDiagnosticBag.cs (1)
85
return new ReadOnlyBindingDiagnostic<TAssemblySymbol>(DiagnosticBag?.
ToReadOnly
(forceDiagnosticResolution) ?? default, DependenciesBag?.ToImmutableArray() ?? default);
CommandLine\CommonCompiler.cs (2)
598
=> ReportDiagnostics(diagnostics.
ToReadOnly
(), consoleOutput, errorLoggerOpt, compilation);
1007
ReportIVTInfos(consoleOutput, errorLogger, compilation, diagnostics.
ToReadOnly
());
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1020
var newDiagnostics = ApplyProgrammaticSuppressionsCore(reportedDiagnostics.
ToReadOnly
(), compilation, cancellationToken);
SourceGeneration\Nodes\SourceOutputNode.cs (1)
72
var sourcesAndDiagnostics = (sourcesBuilder.ToImmutable(), diagnostics.
ToReadOnly
());