22 references to ToReadOnlyAndFree
Microsoft.CodeAnalysis.CSharp (16)
Binder\Binder_Expressions.cs (4)
7538
new BoundTypeOrValueData(leftSymbol, boundValue, valueDiagnostics.
ToReadOnlyAndFree
(forceDiagnosticResolution: false), boundType, typeDiagnostics.
ToReadOnlyAndFree
(forceDiagnosticResolution: false)), leftType);
10675
return new MethodGroupResolution(methodResolution.MethodGroup, methodResolution.OtherSymbol, methodResolution.OverloadResolutionResult, methodResolution.AnalyzedArguments, methodResolution.ResultKind, diagnostics.
ToReadOnlyAndFree
());
10786
sealedDiagnostics = diagnostics.
ToReadOnlyAndFree
();
Binder\LockOrUsingBinder.cs (1)
93
Interlocked.CompareExchange(ref _lazyExpressionAndDiagnostics, new ExpressionAndDiagnostics(boundExpression, expressionDiagnostics.
ToReadOnlyAndFree
()), null);
Binder\SwitchBinder.cs (1)
66
var immutableSwitchGoverningDiagnostics = switchGoverningDiagnostics.
ToReadOnlyAndFree
();
BoundTree\UnboundLambda.cs (3)
896
var result = new BoundLambda(_unboundLambda.Syntax, _unboundLambda, block, diagnostics.
ToReadOnlyAndFree
(), lambdaBodyBinder, delegateType, inferredReturnType: default)
995
diagnostics.
ToReadOnlyAndFree
(),
1245
diagnostics.
ToReadOnlyAndFree
(),
Compilation\CSharpCompilation.cs (5)
1879
entryPoint = new EntryPoint(null, diagnostics.
ToReadOnlyAndFree
());
2159
sealedDiagnostics = diagnostics.
ToReadOnlyAndFree
();
3190
return bindingDiagnostics.
ToReadOnlyAndFree
().Diagnostics;
3298
return builder.
ToReadOnlyAndFree
();
3305
var result = builder.
ToReadOnlyAndFree
();
Symbols\Source\SourceLocalSymbol.cs (1)
589
Interlocked.CompareExchange(ref _constantTuple, new EvaluatedConstant(value, diagnostics.
ToReadOnlyAndFree
()), null);
Symbols\TypeSymbol.cs (1)
792
var implementingMemberAndDiagnostics = new SymbolAndDiagnostics(implementingMember, diagnostics.
ToReadOnlyAndFree
());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
FlowAnalysis\FlowTestBase.cs (1)
44
return flowDiagnostics.
ToReadOnlyAndFree
().Diagnostics;
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
LexicalAndXml\XmlDocCommentTests.cs (5)
3213
diags.
ToReadOnlyAndFree
().Verify(
3230
diags.
ToReadOnlyAndFree
().Verify();
3242
diags.
ToReadOnlyAndFree
().Verify(
3258
diags.
ToReadOnlyAndFree
().Verify(
3278
diags.
ToReadOnlyAndFree
().Verify(