130 references to EmptyEnumerable
Microsoft.CodeAnalysis (62)
CodeGen\ArrayMembers.cs (1)
353=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
CodeGen\PrivateImplementationDetails.cs (12)
490return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 817=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 958=> SpecializedCollections.EmptyEnumerable<Cci.IEventDefinition>(); 961=> SpecializedCollections.EmptyEnumerable<Cci.MethodImplementation>(); 964=> SpecializedCollections.EmptyEnumerable<Cci.IFieldDefinition>(); 967=> SpecializedCollections.EmptyEnumerable<Cci.IGenericTypeParameter>(); 974=> SpecializedCollections.EmptyEnumerable<Cci.TypeReferenceWithAttributes>(); 1001=> SpecializedCollections.EmptyEnumerable<Cci.IMethodDefinition>(); 1004=> SpecializedCollections.EmptyEnumerable<Cci.INestedTypeDefinition>(); 1007=> SpecializedCollections.EmptyEnumerable<Cci.IPropertyDefinition>(); 1010=> SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); 1015=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
CommandLine\CommandLineParser.cs (1)
62return SpecializedCollections.EmptyEnumerable<string>();
Compilation\Compilation.cs (1)
878return CommonWithReferences(SpecializedCollections.EmptyEnumerable<MetadataReference>());
Diagnostic\DiagnosticBag.cs (1)
266return _lazyBag ?? SpecializedCollections.EmptyEnumerable<Diagnostic>();
Emit\CommonPEModuleBuilder.cs (2)
46private IEnumerable<EmbeddedText> _embeddedTexts = SpecializedCollections.EmptyEnumerable<EmbeddedText>(); 389IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\EditAndContinue\DeletedPEMethodDefinition.cs (1)
100=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\ErrorType.cs (2)
171return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 235return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\CommonEmbeddedMethod.cs (2)
227return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 237SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedType.cs (4)
277return SpecializedCollections.EmptyEnumerable<Cci.MethodImplementation>(); 308return SpecializedCollections.EmptyEnumerable<Cci.IGenericTypeParameter>(); 496return SpecializedCollections.EmptyEnumerable<Cci.INestedTypeDefinition>(); 528return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
207return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\VtblGap.cs (4)
36get { return SpecializedCollections.EmptyEnumerable<Cci.IGenericMethodParameter>(); } 126return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 146get { return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); } 175return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
MetadataReader\PEAssembly.cs (1)
172return result ?? SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (1)
687result.Add(new Grouping<string, TypeDefinitionHandle>(pair.Key, pair.Value ?? SpecializedCollections.EmptyEnumerable<TypeDefinitionHandle>()));
PEWriter\ManagedResource.cs (1)
92get { return SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); }
PEWriter\MethodDefinitionBase.cs (3)
38public IEnumerable<IGenericMethodParameter> GenericParameters => SpecializedCollections.EmptyEnumerable<IGenericMethodParameter>(); 111public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 121public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
PEWriter\ModifiedTypeReference.cs (1)
74return SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
PEWriter\RootModuleType.cs (7)
55return SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 85return SpecializedCollections.EmptyEnumerable<IEventDefinition>(); 90return SpecializedCollections.EmptyEnumerable<MethodImplementation>(); 95return SpecializedCollections.EmptyEnumerable<IFieldDefinition>(); 105return SpecializedCollections.EmptyEnumerable<Cci.TypeReferenceWithAttributes>(); 172return SpecializedCollections.EmptyEnumerable<INestedTypeDefinition>(); 177return SpecializedCollections.EmptyEnumerable<IPropertyDefinition>();
src\roslyn\src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (1)
328return SpecializedCollections.EmptyEnumerable<T>();
Syntax\GreenNode.cs (1)
52private static readonly IEnumerable<SyntaxAnnotation> s_noAnnotationsEnumerable = SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>();
Syntax\SyntaxNode.cs (1)
805SpecializedCollections.EmptyEnumerable<SyntaxNode>();
Syntax\SyntaxNodeOrToken.cs (3)
478return SpecializedCollections.EmptyEnumerable<Diagnostic>(); 593return SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 611return SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>();
Syntax\SyntaxToken.cs (5)
271return Node?.GetAnnotations(annotationKind) ?? SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 287return Node?.GetAnnotations(annotationKinds) ?? SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 530return SpecializedCollections.EmptyEnumerable<SyntaxTrivia>(); 661return SpecializedCollections.EmptyEnumerable<Diagnostic>(); 671? SpecializedCollections.EmptyEnumerable<Diagnostic>()
Syntax\SyntaxTrivia.cs (4)
183: SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 193: SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 425return SpecializedCollections.EmptyEnumerable<Diagnostic>(); 437? SpecializedCollections.EmptyEnumerable<Diagnostic>()
TreeDumper.cs (1)
249this.Children = children ?? SpecializedCollections.EmptyEnumerable<TreeDumperNode>();
Microsoft.CodeAnalysis.CSharp (65)
Compilation\CSharpCompilation.cs (2)
474(syntaxTree != null) ? new[] { syntaxTree } : SpecializedCollections.EmptyEnumerable<SyntaxTree>(), 3596manifestResources = SpecializedCollections.EmptyEnumerable<ResourceDescription>();
Emitter\EditAndContinue\EmitHelpers.cs (1)
39var manifestResources = SpecializedCollections.EmptyEnumerable<ResourceDescription>();
Emitter\Model\AssemblyReference.cs (1)
51return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
55IEnumerable<ICustomAttribute> IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
Emitter\Model\ModuleReference.cs (1)
84return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\NamedTypeReference.cs (1)
157return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
730return AdaptedNamedTypeSymbol.GetSecurityInformation() ?? SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emitter\Model\PEModuleBuilder.cs (2)
148public sealed override IEnumerable<string> LinkedAssembliesDebugInfo => SpecializedCollections.EmptyEnumerable<string>(); 548return SpecializedCollections.EmptyEnumerable<Cci.INamespaceTypeDefinition>();
Emitter\Model\PENetModuleBuilder.cs (1)
54public override IEnumerable<Cci.IFileReference> GetFiles(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.IFileReference>();
Emitter\Model\SymbolAdapter.cs (1)
123return SpecializedCollections.EmptyEnumerable<CSharpAttributeData>();
Emitter\Model\TypeMemberReference.cs (1)
42return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
FlowAnalysis\AlwaysAssignedWalker.cs (1)
40return badRegion ? SpecializedCollections.EmptyEnumerable<Symbol>() : result;
FlowAnalysis\EmptyStructTypeCache.cs (1)
168return SpecializedCollections.EmptyEnumerable<FieldSymbol>();
FlowAnalysis\EntryPointsWalker.cs (1)
33return badRegion ? SpecializedCollections.EmptyEnumerable<LabeledStatementSyntax>() : result;
FlowAnalysis\VariablesDeclaredWalker.cs (1)
29return badRegion ? SpecializedCollections.EmptyEnumerable<Symbol>() : walker._variablesDeclared;
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
142: SpecializedCollections.EmptyEnumerable<FieldSymbol>();
Lowering\SynthesizedMethodBaseSymbol.cs (1)
191: SpecializedCollections.EmptyEnumerable<SecurityAttribute>();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
296return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
241internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => SpecializedCollections.EmptyEnumerable<FieldSymbol>();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
338return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\ArrayTypeSymbol.cs (1)
490return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\DynamicTypeSymbol.cs (1)
255return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\ErrorTypeSymbol.cs (2)
138return SpecializedCollections.EmptyEnumerable<string>(); 579return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
223return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
96groups = SpecializedCollections.EmptyEnumerable<IGrouping<string, TypeDefinitionHandle>>();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (1)
3107return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\MissingAssemblySymbol.cs (3)
195return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 200return SpecializedCollections.EmptyEnumerable<string>(); 217return SpecializedCollections.EmptyEnumerable<NamedTypeSymbol>();
Symbols\NamespaceOrTypeSymbol.cs (1)
406return SpecializedCollections.EmptyEnumerable<NamespaceOrTypeSymbol>();
Symbols\NativeIntegerTypeSymbol.cs (1)
288return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\PointerTypeSymbol.cs (1)
317return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Source\ExtensionGroupingInfo.cs (9)
528IEnumerable<SecurityAttribute> ITypeDefinition.SecurityAttributes => SpecializedCollections.EmptyEnumerable<SecurityAttribute>(); 620return SpecializedCollections.EmptyEnumerable<IEventDefinition>(); 625return SpecializedCollections.EmptyEnumerable<Cci.MethodImplementation>(); 630return SpecializedCollections.EmptyEnumerable<IFieldDefinition>(); 666return SpecializedCollections.EmptyEnumerable<TypeReferenceWithAttributes>(); 877return SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 943protected override IEnumerable<INestedTypeDefinition> NestedTypes => SpecializedCollections.EmptyEnumerable<INestedTypeDefinition>(); 947protected override IEnumerable<IPropertyDefinition> GetProperties(EmitContext context) => SpecializedCollections.EmptyEnumerable<IPropertyDefinition>(); 951return SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
Symbols\Source\SourceAssemblySymbol.cs (3)
2131return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2137return (result != null) ? result.Keys : SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2145return SpecializedCollections.EmptyEnumerable<string>();
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1732return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (2)
253internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); 284internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
978internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); 1021internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (1)
122return SpecializedCollections.EmptyEnumerable<FieldSymbol>();
Symbols\Synthesized\SynthesizedContainer.cs (2)
88public override IEnumerable<string> MemberNames => SpecializedCollections.EmptyEnumerable<string>(); 220return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
178internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => SpecializedCollections.EmptyEnumerable<FieldSymbol>(); 217return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
174internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); 199internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
166return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Synthesized\SynthesizedPrivateImplementationDetailsType.cs (3)
49public override IEnumerable<string> MemberNames => SpecializedCollections.EmptyEnumerable<string>(); 172internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<SecurityAttribute>(); 199return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\TypeParameterSymbol.cs (1)
720return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Syntax\CSharpSyntaxTree.cs (1)
797return SpecializedCollections.EmptyEnumerable<Diagnostic>();
Microsoft.CodeAnalysis.Scripting (2)
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
102return SpecializedCollections.EmptyEnumerable<AssemblyIdentity>();
src\roslyn\src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
154return SpecializedCollections.EmptyEnumerable<AssemblyIdentity>();
VBCSCompiler (1)
src\roslyn\src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (1)
88string? resolvedPath = FileUtilities.ResolveRelativePath(analyzerReference.FilePath, basePath: null, baseDirectory: baseDirectory, searchPaths: SpecializedCollections.EmptyEnumerable<string>(), fileExists: File.Exists);