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)
598=> ReportDiagnostics(diagnostics.ToReadOnly(), consoleOutput, errorLoggerOpt, compilation); 1007ReportIVTInfos(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());