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