10 references to ToReadOnly
Microsoft.CodeAnalysis (4)
Binding\BindingDiagnosticBag.cs (1)
87return new ImmutableBindingDiagnostic<TAssemblySymbol>(DiagnosticBag?.ToReadOnly() ?? default, DependenciesBag?.ToImmutableArray() ?? default);
CommandLine\CommonCompiler.cs (1)
595=> ReportDiagnostics(diagnostics.ToReadOnly(), consoleOutput, errorLoggerOpt, compilation);
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
948var newDiagnostics = ApplyProgrammaticSuppressionsCore(reportedDiagnostics.ToReadOnly(), compilation);
SourceGeneration\Nodes\SourceOutputNode.cs (1)
74var sourcesAndDiagnostics = (sourcesBuilder.ToImmutable(), diagnostics.ToReadOnly());
Microsoft.CodeAnalysis.CSharp (2)
FlowAnalysis\FlowAnalysisPass.cs (1)
95Debug.Assert(getErrorsOnly(flowAnalysisDiagnostics.ToReadOnly()).SequenceEqual(getErrorsOnly(diagnostics.ToReadOnly().Diagnostics.Skip(initialDiagnosticCount))));
Symbols\ReferenceManager.cs (1)
508resolutionDiagnostics.ToReadOnly(),
Microsoft.CodeAnalysis.VisualBasic (4)
Compilation\DocumentationComments\DocumentationCommentCompiler.Includes.vb (1)
630Dim errorLocations = diagnostics.DiagnosticBag.ToReadOnly().SelectAsArray(Function(x) x.Location).WhereAsArray(Function(x) x IsNot Nothing)
Compilation\DocumentationComments\DocumentationCommentWalker.vb (1)
157Dim errorLocations = diagnostics.DiagnosticBag.ToReadOnly.SelectAsArray(Function(x) x.Location).WhereAsArray(Function(x) x IsNot Nothing)
Compilation\MethodCompiler.vb (1)
1260If sourceMethod.SetDiagnostics(diagsForCurrentMethod.DiagnosticBag.ToReadOnly()) Then
Symbols\ReferenceManager.vb (1)
442resolutionDiagnostics.ToReadOnly(),