136 references to EmptyEnumerable
Microsoft.CodeAnalysis (59)
CodeGen\ArrayMembers.cs (1)
353
=> SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
CodeGen\PrivateImplementationDetails.cs (12)
536
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
885
=> SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
1024
=> SpecializedCollections.
EmptyEnumerable
<Cci.IEventDefinition>();
1027
=> SpecializedCollections.
EmptyEnumerable
<Cci.MethodImplementation>();
1030
=> SpecializedCollections.
EmptyEnumerable
<Cci.IFieldDefinition>();
1033
=> SpecializedCollections.
EmptyEnumerable
<Cci.IGenericTypeParameter>();
1040
=> SpecializedCollections.
EmptyEnumerable
<Cci.TypeReferenceWithAttributes>();
1067
=> SpecializedCollections.
EmptyEnumerable
<Cci.IMethodDefinition>();
1070
=> SpecializedCollections.
EmptyEnumerable
<Cci.INestedTypeDefinition>();
1073
=> SpecializedCollections.
EmptyEnumerable
<Cci.IPropertyDefinition>();
1076
=> SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
1081
=> SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
CommandLine\CommandLineParser.cs (1)
62
return SpecializedCollections.
EmptyEnumerable
<string>();
Compilation\Compilation.cs (1)
858
return CommonWithReferences(SpecializedCollections.
EmptyEnumerable
<MetadataReference>());
Diagnostic\DiagnosticBag.cs (1)
266
return _lazyBag ?? SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
Emit\CommonPEModuleBuilder.cs (2)
46
private IEnumerable<EmbeddedText> _embeddedTexts = SpecializedCollections.
EmptyEnumerable
<EmbeddedText>();
372
IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) => SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emit\ErrorType.cs (2)
171
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
235
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emit\NoPia\CommonEmbeddedMethod.cs (2)
227
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
237
SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedType.cs (4)
270
return SpecializedCollections.
EmptyEnumerable
<Cci.MethodImplementation>();
301
return SpecializedCollections.
EmptyEnumerable
<Cci.IGenericTypeParameter>();
489
return SpecializedCollections.
EmptyEnumerable
<Cci.INestedTypeDefinition>();
521
return SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
207
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emit\NoPia\VtblGap.cs (4)
36
get { return SpecializedCollections.
EmptyEnumerable
<Cci.IGenericMethodParameter>(); }
126
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
146
get { return SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>(); }
175
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
MetadataReader\PEAssembly.cs (1)
172
return result ?? SpecializedCollections.
EmptyEnumerable
<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (1)
687
result.Add(new Grouping<string, TypeDefinitionHandle>(pair.Key, pair.Value ?? SpecializedCollections.
EmptyEnumerable
<TypeDefinitionHandle>()));
PEWriter\ManagedResource.cs (1)
92
get { return SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>(); }
PEWriter\MethodDefinitionBase.cs (3)
38
public IEnumerable<IGenericMethodParameter> GenericParameters => SpecializedCollections.
EmptyEnumerable
<IGenericMethodParameter>();
111
public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) => SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
121
public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context) => SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
PEWriter\ModifiedTypeReference.cs (1)
74
return SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
PEWriter\RootModuleType.cs (7)
55
return SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
85
return SpecializedCollections.
EmptyEnumerable
<IEventDefinition>();
90
return SpecializedCollections.
EmptyEnumerable
<MethodImplementation>();
95
return SpecializedCollections.
EmptyEnumerable
<IFieldDefinition>();
105
return SpecializedCollections.
EmptyEnumerable
<Cci.TypeReferenceWithAttributes>();
172
return SpecializedCollections.
EmptyEnumerable
<INestedTypeDefinition>();
177
return SpecializedCollections.
EmptyEnumerable
<IPropertyDefinition>();
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
328
return SpecializedCollections.
EmptyEnumerable
<T>();
Syntax\GreenNode.cs (1)
51
private static readonly IEnumerable<SyntaxAnnotation> s_noAnnotationsEnumerable = SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
Syntax\SyntaxNode.cs (1)
804
SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
Syntax\SyntaxNodeOrToken.cs (3)
478
return SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
593
return SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
611
return SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
Syntax\SyntaxToken.cs (5)
271
return Node?.GetAnnotations(annotationKind) ?? SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
287
return Node?.GetAnnotations(annotationKinds) ?? SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
530
return SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
661
return SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
671
? SpecializedCollections.
EmptyEnumerable
<Diagnostic>()
Syntax\SyntaxTrivia.cs (2)
182
: SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
192
: SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
TreeDumper.cs (1)
243
this.Children = children ?? SpecializedCollections.
EmptyEnumerable
<TreeDumperNode>();
Microsoft.CodeAnalysis.CSharp (58)
Compilation\CSharpCompilation.cs (2)
391
(syntaxTree != null) ? new[] { syntaxTree } : SpecializedCollections.
EmptyEnumerable
<SyntaxTree>(),
3444
manifestResources = SpecializedCollections.
EmptyEnumerable
<ResourceDescription>();
Emitter\EditAndContinue\EmitHelpers.cs (1)
41
var manifestResources = SpecializedCollections.
EmptyEnumerable
<ResourceDescription>();
Emitter\Model\AssemblyReference.cs (1)
51
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
55
IEnumerable<ICustomAttribute> IReference.GetAttributes(EmitContext context) => SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
Emitter\Model\ModuleReference.cs (1)
84
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emitter\Model\NamedTypeReference.cs (1)
157
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
715
return AdaptedNamedTypeSymbol.GetSecurityInformation() ?? SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
Emitter\Model\PEModuleBuilder.cs (2)
144
public sealed override IEnumerable<string> LinkedAssembliesDebugInfo => SpecializedCollections.
EmptyEnumerable
<string>();
548
return SpecializedCollections.
EmptyEnumerable
<Cci.INamespaceTypeDefinition>();
Emitter\Model\PENetModuleBuilder.cs (1)
53
public override IEnumerable<Cci.IFileReference> GetFiles(EmitContext context) => SpecializedCollections.
EmptyEnumerable
<Cci.IFileReference>();
Emitter\Model\SymbolAdapter.cs (1)
123
return SpecializedCollections.
EmptyEnumerable
<CSharpAttributeData>();
Emitter\Model\TypeMemberReference.cs (1)
42
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
FlowAnalysis\AlwaysAssignedWalker.cs (1)
40
return badRegion ? SpecializedCollections.
EmptyEnumerable
<Symbol>() : result;
FlowAnalysis\EmptyStructTypeCache.cs (1)
168
return SpecializedCollections.
EmptyEnumerable
<FieldSymbol>();
FlowAnalysis\EntryPointsWalker.cs (1)
33
return badRegion ? SpecializedCollections.
EmptyEnumerable
<LabeledStatementSyntax>() : result;
FlowAnalysis\VariablesDeclaredWalker.cs (1)
30
return badRegion ? SpecializedCollections.
EmptyEnumerable
<Symbol>() : walker._variablesDeclared;
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
135
: SpecializedCollections.
EmptyEnumerable
<FieldSymbol>();
Lowering\SynthesizedMethodBaseSymbol.cs (1)
184
: SpecializedCollections.
EmptyEnumerable
<SecurityAttribute>();
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (2)
350
SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
358
SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
289
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
237
internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => SpecializedCollections.
EmptyEnumerable
<FieldSymbol>();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
335
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\ArrayTypeSymbol.cs (1)
492
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\DynamicTypeSymbol.cs (1)
257
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\ErrorTypeSymbol.cs (2)
137
return SpecializedCollections.
EmptyEnumerable
<string>();
572
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
224
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
96
groups = SpecializedCollections.
EmptyEnumerable
<IGrouping<string, TypeDefinitionHandle>>();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
2743
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\MissingAssemblySymbol.cs (3)
195
return SpecializedCollections.
EmptyEnumerable
<ImmutableArray<byte>>();
200
return SpecializedCollections.
EmptyEnumerable
<string>();
217
return SpecializedCollections.
EmptyEnumerable
<NamedTypeSymbol>();
Symbols\NamespaceOrTypeSymbol.cs (1)
406
return SpecializedCollections.
EmptyEnumerable
<NamespaceOrTypeSymbol>();
Symbols\NativeIntegerTypeSymbol.cs (1)
281
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\PointerTypeSymbol.cs (1)
319
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Source\SourceAssemblySymbol.cs (3)
2129
return SpecializedCollections.
EmptyEnumerable
<ImmutableArray<byte>>();
2135
return (result != null) ? result.Keys : SpecializedCollections.
EmptyEnumerable
<ImmutableArray<byte>>();
2143
return SpecializedCollections.
EmptyEnumerable
<string>();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1716
return SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (2)
238
internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
269
internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
920
internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
957
internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
118
return SpecializedCollections.
EmptyEnumerable
<FieldSymbol>();
Symbols\Synthesized\SynthesizedContainer.cs (2)
84
public override IEnumerable<string> MemberNames => SpecializedCollections.
EmptyEnumerable
<string>();
213
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
171
internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => SpecializedCollections.
EmptyEnumerable
<FieldSymbol>();
210
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
169
internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
194
internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
166
return SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (3)
49
public override IEnumerable<string> MemberNames => SpecializedCollections.
EmptyEnumerable
<string>();
167
internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => SpecializedCollections.
EmptyEnumerable
<SecurityAttribute>();
194
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\TypeParameterSymbol.cs (1)
722
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Syntax\CSharpSyntaxTree.cs (1)
797
return SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
3988
var parsedArgs = DefaultParse(SpecializedCollections.
EmptyEnumerable
<string>(), WorkingDirectory);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
2725
OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
Emit\EmitMetadataTests.cs (1)
1415
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\IndexerTests.cs (1)
2539
SpecializedCollections.
EmptyEnumerable
<ElementAccessExpressionSyntax>() :
Symbols\MockNamedTypeSymbol.cs (1)
346
return SpecializedCollections.
EmptyEnumerable
<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Source\BaseClassTests.cs (1)
1576
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
Symbols\Source\MethodTests.cs (6)
1684
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
1728
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
1775
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
1829
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
1970
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
2014
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
Symbols\Source\PropertyTests.cs (2)
2507
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
2545
GetDefaultModulePropertiesForSerialization(), SpecializedCollections.
EmptyEnumerable
<ResourceDescription>());
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
AssemblyReference.cs (1)
43
return SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
DkmUtilities.cs (1)
33
return SpecializedCollections.
EmptyEnumerable
<DkmClrModuleInstance>();
Microsoft.CodeAnalysis.Scripting (2)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
102
return SpecializedCollections.
EmptyEnumerable
<AssemblyIdentity>();
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
154
return SpecializedCollections.
EmptyEnumerable
<AssemblyIdentity>();
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (1)
88
string? resolvedPath = FileUtilities.ResolveRelativePath(analyzerReference.FilePath, basePath: null, baseDirectory: baseDirectory, searchPaths: SpecializedCollections.
EmptyEnumerable
<string>(), fileExists: File.Exists);