59 references to EmptyEnumerable
Microsoft.CodeAnalysis (59)
CodeGen\ArrayMembers.cs (1)
352
=> SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
CodeGen\PrivateImplementationDetails.cs (12)
428
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
670
=> SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
788
=> SpecializedCollections.
EmptyEnumerable
<Cci.IEventDefinition>();
791
=> SpecializedCollections.
EmptyEnumerable
<Cci.MethodImplementation>();
794
=> SpecializedCollections.
EmptyEnumerable
<Cci.IFieldDefinition>();
797
=> SpecializedCollections.
EmptyEnumerable
<Cci.IGenericTypeParameter>();
804
=> SpecializedCollections.
EmptyEnumerable
<Cci.TypeReferenceWithAttributes>();
831
=> SpecializedCollections.
EmptyEnumerable
<Cci.IMethodDefinition>();
834
=> SpecializedCollections.
EmptyEnumerable
<Cci.INestedTypeDefinition>();
837
=> SpecializedCollections.
EmptyEnumerable
<Cci.IPropertyDefinition>();
840
=> SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
845
=> SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
CommandLine\CommandLineParser.cs (1)
61
return SpecializedCollections.
EmptyEnumerable
<string>();
Compilation\Compilation.cs (1)
857
return CommonWithReferences(SpecializedCollections.
EmptyEnumerable
<MetadataReference>());
Diagnostic\DiagnosticBag.cs (1)
265
return _lazyBag ?? SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
Emit\CommonPEModuleBuilder.cs (2)
44
private IEnumerable<EmbeddedText> _embeddedTexts = SpecializedCollections.
EmptyEnumerable
<EmbeddedText>();
303
IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) => SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emit\ErrorType.cs (2)
170
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
234
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emit\NoPia\CommonEmbeddedMethod.cs (2)
226
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
236
SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedType.cs (4)
269
return SpecializedCollections.
EmptyEnumerable
<Cci.MethodImplementation>();
300
return SpecializedCollections.
EmptyEnumerable
<Cci.IGenericTypeParameter>();
488
return SpecializedCollections.
EmptyEnumerable
<Cci.INestedTypeDefinition>();
520
return SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
206
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
Emit\NoPia\VtblGap.cs (4)
35
get { return SpecializedCollections.
EmptyEnumerable
<Cci.IGenericMethodParameter>(); }
125
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
145
get { return SpecializedCollections.
EmptyEnumerable
<Cci.SecurityAttribute>(); }
174
return SpecializedCollections.
EmptyEnumerable
<Cci.ICustomAttribute>();
InternalUtilities\EnumerableExtensions.cs (1)
345
return SpecializedCollections.
EmptyEnumerable
<T>();
MetadataReader\PEAssembly.cs (1)
170
return result ?? SpecializedCollections.
EmptyEnumerable
<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (1)
682
result.Add(new Grouping<string, TypeDefinitionHandle>(pair.Key, pair.Value ?? SpecializedCollections.
EmptyEnumerable
<TypeDefinitionHandle>()));
PEWriter\ManagedResource.cs (1)
91
get { return SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>(); }
PEWriter\ModifiedTypeReference.cs (1)
72
return SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
PEWriter\RootModuleStaticConstructor.cs (3)
37
public IEnumerable<IGenericMethodParameter> GenericParameters => SpecializedCollections.
EmptyEnumerable
<IGenericMethodParameter>();
112
public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) => SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
122
public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context) => SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
PEWriter\RootModuleType.cs (7)
53
return SpecializedCollections.
EmptyEnumerable
<ICustomAttribute>();
83
return SpecializedCollections.
EmptyEnumerable
<IEventDefinition>();
88
return SpecializedCollections.
EmptyEnumerable
<MethodImplementation>();
93
return SpecializedCollections.
EmptyEnumerable
<IFieldDefinition>();
103
return SpecializedCollections.
EmptyEnumerable
<Cci.TypeReferenceWithAttributes>();
170
return SpecializedCollections.
EmptyEnumerable
<INestedTypeDefinition>();
175
return SpecializedCollections.
EmptyEnumerable
<IPropertyDefinition>();
Syntax\GreenNode.cs (1)
50
private static readonly IEnumerable<SyntaxAnnotation> s_noAnnotationsEnumerable = SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
Syntax\SyntaxNode.cs (1)
803
SpecializedCollections.
EmptyEnumerable
<SyntaxNode>();
Syntax\SyntaxNodeOrToken.cs (3)
477
return SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
592
return SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
610
return SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
Syntax\SyntaxToken.cs (5)
270
return Node?.GetAnnotations(annotationKind) ?? SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
286
return Node?.GetAnnotations(annotationKinds) ?? SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
529
return SpecializedCollections.
EmptyEnumerable
<SyntaxTrivia>();
660
return SpecializedCollections.
EmptyEnumerable
<Diagnostic>();
670
? SpecializedCollections.
EmptyEnumerable
<Diagnostic>()
Syntax\SyntaxTrivia.cs (2)
181
: SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
191
: SpecializedCollections.
EmptyEnumerable
<SyntaxAnnotation>();
TreeDumper.cs (1)
242
this.Children = children ?? SpecializedCollections.
EmptyEnumerable
<TreeDumperNode>();