20 references to OneOrMany
Microsoft.CodeAnalysis.Workspaces (20)
Options\GlobalOptionService.cs (2)
184
=> SetGlobalOptions(
OneOrMany
.Create(KeyValuePairUtil.Create(optionKey, value)));
187
=> SetGlobalOptions(
OneOrMany
.Create(options));
src\Compilers\Core\Portable\Collections\OrderPreservingMultiDictionary.cs (2)
162
return valueSet.Count == 1 ?
OneOrMany
.Create(valueSet[0]) :
OneOrMany
.Create(valueSet.Items);
src\Compilers\Core\Portable\Collections\TemporaryArray`1.cs (1)
287
var result =
OneOrMany
.Create(this[0]);
src\Compilers\Core\Portable\InternalUtilities\OneOrMany.cs (9)
94
=> HasOneItem ?
OneOrMany
.Create(_one, item) :
95
IsEmpty ?
OneOrMany
.Create(item) :
96
OneOrMany
.Create(_many.Add(item));
120
return
OneOrMany
.Create(_many.WhereAsArray(static (value, item) => !EqualityComparer<T>.Default.Equals(value, item), item));
126
OneOrMany
.Create(selector(_one)) :
127
OneOrMany
.Create(_many.SelectAsArray(selector));
133
OneOrMany
.Create(selector(_one, arg)) :
134
OneOrMany
.Create(_many.SelectAsArray(selector, arg));
206
=> SequenceEqual(
OneOrMany
.Create(other), comparer);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SymbolEquivalenceComparer.cs (2)
215
return
OneOrMany
.Create(namedType);
226
return
OneOrMany
.Create(builder.ToImmutableAndClear());
Workspace\ProjectSystem\ProjectSystemProject.cs (3)
1129
return
OneOrMany
.Create(fullPath);
1166
return
OneOrMany
.Create(vsixRazorAnalyzers);
1172
return
OneOrMany
.Create(fullPath);
Workspace\Solution\TextDocumentStates.cs (1)
370
:
OneOrMany
.Create(documentId);