5 references to ToImmutableAndClear
Microsoft.CodeAnalysis (3)
Compilation\Compilation.cs (1)
3831
return builder.
ToImmutableAndClear
();
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
1146
return builder.
ToImmutableAndClear
();
src\Dependencies\Collections\TemporaryArray`1.cs (1)
294
return new(this.
ToImmutableAndClear
());
Microsoft.CodeAnalysis.CSharp (1)
Lowering\SyntheticBoundNodeFactory.cs (1)
553
return Block(instrumentation.Locals.ToImmutable(), statements.
ToImmutableAndClear
());
Microsoft.CodeAnalysis.UnitTests (1)
Collections\TemporaryArrayTests.cs (1)
179
var immutableArray = array.
ToImmutableAndClear
();