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