22 references to ToReadOnlyAndFree
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Expressions.cs (4)
7538new BoundTypeOrValueData(leftSymbol, boundValue, valueDiagnostics.ToReadOnlyAndFree(forceDiagnosticResolution: false), boundType, typeDiagnostics.ToReadOnlyAndFree(forceDiagnosticResolution: false)), leftType); 10675return new MethodGroupResolution(methodResolution.MethodGroup, methodResolution.OtherSymbol, methodResolution.OverloadResolutionResult, methodResolution.AnalyzedArguments, methodResolution.ResultKind, diagnostics.ToReadOnlyAndFree()); 10786sealedDiagnostics = 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)
896var result = new BoundLambda(_unboundLambda.Syntax, _unboundLambda, block, diagnostics.ToReadOnlyAndFree(), lambdaBodyBinder, delegateType, inferredReturnType: default) 995diagnostics.ToReadOnlyAndFree(), 1245diagnostics.ToReadOnlyAndFree(),
Compilation\CSharpCompilation.cs (5)
1879entryPoint = new EntryPoint(null, diagnostics.ToReadOnlyAndFree()); 2159sealedDiagnostics = diagnostics.ToReadOnlyAndFree(); 3190return bindingDiagnostics.ToReadOnlyAndFree().Diagnostics; 3298return builder.ToReadOnlyAndFree(); 3305var result = builder.ToReadOnlyAndFree();
Symbols\Source\SourceLocalSymbol.cs (1)
589Interlocked.CompareExchange(ref _constantTuple, new EvaluatedConstant(value, diagnostics.ToReadOnlyAndFree()), null);
Symbols\TypeSymbol.cs (1)
792var 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(