10 references to Create
Microsoft.CodeAnalysis (10)
Collections\ArrayBuilderExtensions.cs (1)
269
return OneOrMany.
Create
(builder.ToImmutableAndFree());
Collections\OrderPreservingMultiDictionary.cs (1)
162
return valueSet.Count == 1 ? OneOrMany.Create(valueSet[0]) : OneOrMany.
Create
(valueSet.Items);
InternalUtilities\OneOrMany.cs (6)
96
OneOrMany.
Create
(_many.Add(item));
120
return OneOrMany.
Create
(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
127
OneOrMany.
Create
(_many.SelectAsArray(selector));
134
OneOrMany.
Create
(_many.SelectAsArray(selector, arg));
206
=> SequenceEqual(OneOrMany.
Create
(other), comparer);
281
=>
Create
(array).SequenceEqual(other, comparer);
SourceGeneration\Nodes\NodeStateTable.cs (2)
457
var tableEntry = new TableEntry(OneOrMany.
Create
(values), state);
651
return new TableEntry(OneOrMany.
Create
(itemBuilder.ToImmutableArray()), s_allCachedEntries, anyRemoved: false);