32 references to Empty
Microsoft.CodeAnalysis (4)
Collections\OrderPreservingMultiDictionary.cs (1)
165return OneOrMany<V>.Empty;
src\roslyn\src\Dependencies\Collections\OneOrMany.cs (2)
118return EqualityComparer<T>.Default.Equals(item, _one) ? Empty : this; 276=> one is null ? OneOrMany<T>.Empty : new OneOrMany<T>(one);
src\roslyn\src\Dependencies\Collections\TemporaryArray`1.cs (1)
288return OneOrMany<T>.Empty;
Microsoft.CodeAnalysis.CSharp (28)
Compilation\CSharpCompilation.cs (3)
1149return mappedPathToSyntaxTree.TryGetValue(mappedPath, out var value) ? value : OneOrMany<SyntaxTree>.Empty; 1175return contentHashToSyntaxTree.TryGetValue(contentHash, out var value) ? value : OneOrMany<SyntaxTree>.Empty; 1202return pathToSyntaxTree.TryGetValue(path, out var value) ? value : OneOrMany<SyntaxTree>.Empty;
Compilation\CSharpSemanticModel.cs (7)
2335var symbols = OneOrMany<Symbol>.Empty; 3362OneOrMany<Symbol> symbols = OneOrMany<Symbol>.Empty; 3515symbols = OneOrMany<Symbol>.Empty; 3706symbols = thisParam != null ? OneOrMany.Create<Symbol>(thisParam) : OneOrMany<Symbol>.Empty; 3978symbols = OneOrMany<Symbol>.Empty; 4267OneOrMany<Symbol> symbols = OneOrMany<Symbol>.Empty; 4419OneOrMany<Symbol> symbols = OneOrMany<Symbol>.Empty;
Compilation\MemberSemanticModel.cs (4)
1482return _guardedBoundNodeMap.TryGetValue(node, out result) ? result : OneOrMany<BoundNode>.Empty; 1491return _guardedBoundNodeMap.TryGetValue(node, out result) ? result : OneOrMany<BoundNode>.Empty; 1516return _guardedBoundNodeMap.TryGetValue(syntax, out result) ? result : OneOrMany<BoundNode>.Empty; 2204return OneOrMany<BoundNode>.Empty;
Compilation\SyntaxAndDeclarationManager.cs (3)
179lastComputedMemberNames: OneOrMany<WeakReference<StrongBox<ImmutableSegmentedHashSet<string>>>>.Empty, declTableBuilder); 185lastComputedMemberNamesMap.Add(tree, OneOrMany<WeakReference<StrongBox<ImmutableSegmentedHashSet<string>>>>.Empty); 659return OneOrMany<WeakReference<StrongBox<ImmutableSegmentedHashSet<string>>>>.Empty;
Declarations\DeclarationTreeBuilder.cs (1)
95previousMemberNames ?? OneOrMany<WeakReference<BoxedMemberNames>>.Empty);
FlowAnalysis\NullableWalker.cs (2)
984return OneOrMany<Symbol>.Empty; 1047return OneOrMany<Symbol>.Empty;
Symbols\Source\GlobalExpressionVariable.cs (1)
60protected override OneOrMany<SyntaxList<AttributeListSyntax>> GetAttributeDeclarations() => OneOrMany<SyntaxList<AttributeListSyntax>>.Empty;
Symbols\Source\SourceEnumConstantSymbol.cs (1)
99return OneOrMany<SyntaxList<AttributeListSyntax>>.Empty;
Symbols\Source\SourceFieldLikeEventSymbol.cs (2)
318return OneOrMany<SyntaxList<AttributeListSyntax>>.Empty; 322return OneOrMany<SyntaxList<AttributeListSyntax>>.Empty;
Symbols\Source\SourceMemberFieldSymbol.cs (1)
463return OneOrMany<SyntaxList<AttributeListSyntax>>.Empty;
Symbols\Synthesized\Records\SynthesizedPrimaryConstructorParameterBackingFieldSymbol.cs (1)
40=> OneOrMany<SyntaxList<AttributeListSyntax>>.Empty;
Symbols\Synthesized\Records\SynthesizedRecordEqualityContractProperty.cs (1)
58=> OneOrMany<SyntaxList<AttributeListSyntax>>.Empty;
Symbols\Synthesized\SynthesizedUnionValuePropertySymbol.cs (1)
54=> OneOrMany<SyntaxList<AttributeListSyntax>>.Empty;