22 references to ToReadOnlyAndFree
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Expressions.cs (4)
7566new BoundTypeOrValueData(leftSymbol, boundValue, valueDiagnostics.ToReadOnlyAndFree(forceDiagnosticResolution: false), boundType, typeDiagnostics.ToReadOnlyAndFree(forceDiagnosticResolution: false)), leftType); 10686return new MethodGroupResolution(methodResolution.MethodGroup, methodResolution.OtherSymbol, methodResolution.OverloadResolutionResult, methodResolution.AnalyzedArguments, methodResolution.ResultKind, diagnostics.ToReadOnlyAndFree()); 10797sealedDiagnostics = diagnostics.ToReadOnlyAndFree();
Binder\LockOrUsingBinder.cs (1)
93Interlocked.CompareExchange(ref _lazyExpressionAndDiagnostics, new ExpressionAndDiagnostics(boundExpression, expressionDiagnostics.ToReadOnlyAndFree()), null);
Binder\SwitchBinder.cs (1)
66var immutableSwitchGoverningDiagnostics = switchGoverningDiagnostics.ToReadOnlyAndFree();
BoundTree\UnboundLambda.cs (3)
918var result = new BoundLambda(_unboundLambda.Syntax, _unboundLambda, block, diagnostics.ToReadOnlyAndFree(), lambdaBodyBinder, delegateType, inferredReturnType: default) 1025diagnostics.ToReadOnlyAndFree(), 1283diagnostics.ToReadOnlyAndFree(),
Compilation\CSharpCompilation.cs (5)
1941entryPoint = new EntryPoint(null, diagnostics.ToReadOnlyAndFree()); 2212sealedDiagnostics = diagnostics.ToReadOnlyAndFree(); 3248return bindingDiagnostics.ToReadOnlyAndFree().Diagnostics; 3356return builder.ToReadOnlyAndFree(); 3363var result = builder.ToReadOnlyAndFree();
Symbols\Source\SourceLocalSymbol.cs (1)
685Interlocked.CompareExchange(ref _constantTuple, new EvaluatedConstant(value, diagnostics.ToReadOnlyAndFree()), null);
Symbols\TypeSymbol.cs (1)
780var implementingMemberAndDiagnostics = new SymbolAndDiagnostics(implementingMember, diagnostics.ToReadOnlyAndFree());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
FlowAnalysis\FlowTestBase.cs (1)
44return flowDiagnostics.ToReadOnlyAndFree().Diagnostics;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
LexicalAndXml\XmlDocCommentTests.cs (5)
3213diags.ToReadOnlyAndFree().Verify( 3230diags.ToReadOnlyAndFree().Verify(); 3242diags.ToReadOnlyAndFree().Verify( 3258diags.ToReadOnlyAndFree().Verify( 3278diags.ToReadOnlyAndFree().Verify(