9 references to OneOrMany
Microsoft.CodeAnalysis (5)
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (4)
28public static readonly OneOrMany<T> Empty = new OneOrMany<T>(ImmutableArray<T>.Empty); 167: new OneOrMany<T>(ImmutableArray<T>.CastUp(from._many)); 273=> new OneOrMany<T>(ImmutableArray.Create(one, two)); 279=> new OneOrMany<T>(many);
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
294return new(this.ToImmutableAndClear());
Microsoft.CodeAnalysis.CSharp (4)
BoundTree\BoundDagEvaluation.cs (3)
246return new OneOrMany<BoundDagTemp>([Input, LengthTemp]); 283return new OneOrMany<BoundDagTemp>([Input, LengthTemp]); 374return new OneOrMany<BoundDagTemp>(builder.ToImmutableAndFree());
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
76return new OneOrMany<SyntaxList<AttributeListSyntax>>(((SourceNamedTypeSymbol)ContainingType).GetAttributeDeclarations());