8 references to ToReadOnly
Microsoft.CodeAnalysis (1)
Binding\BindingDiagnosticBag.cs (1)
90var result = ToReadOnly(forceDiagnosticResolution);
Microsoft.CodeAnalysis.CSharp (7)
Binder\Binder_Expressions.cs (4)
8702result = new MethodGroupResolution(bestProperty, LookupResultKind.Viable, diagnostics.ToReadOnly()); 8760return new MethodGroupResolution(methodGroup, diagnostics.ToReadOnly()); 8795return new MethodGroupResolution(methodGroup, null, overloadResolutionResult, actualMethodArguments, methodGroup.ResultKind, diagnostics.ToReadOnly()); 8842return new MethodGroupResolution(resultSymbol, LookupResultKind.Viable, diagnostics.ToReadOnly());
Compiler\MethodCompiler.cs (1)
1138var actualDiagnostics = diagsForCurrentMethod.ToReadOnly();
FlowAnalysis\FlowAnalysisPass.cs (2)
42var initialDiagnosticCount = diagnostics.ToReadOnly().Diagnostics.Length; 95Debug.Assert(getErrorsOnly(flowAnalysisDiagnostics.ToReadOnly()).SequenceEqual(getErrorsOnly(diagnostics.ToReadOnly().Diagnostics.Skip(initialDiagnosticCount))));