|
members = hasNamespaces |
|
? builder.ToImmutable() |
|
: ImmutableArray<TNamespaceOrTypeSymbol>.CastUp(builder.ToDowncastedImmutable<TNamedTypeSymbol>()); |
|
|
|
builder.Free(); |
One branch could do builder.ToImmutableAndFree(), which would allow for the optimization of moving the internal array to the immutable array without a copy.