223 references to SpecializedCollections
Microsoft.CodeAnalysis (108)
AdditionalTextFile.cs (1)
33_diagnostics = SpecializedCollections.EmptyList<DiagnosticInfo>();
CodeGen\ArrayMembers.cs (1)
353=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
CodeGen\PrivateImplementationDetails.cs (13)
533return SpecializedCollections.SingletonEnumerable(_compilerGeneratedAttribute); 536return 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>();
Collections\TopologicalSort.cs (1)
27return TryIterativeSort(SpecializedCollections.SingletonEnumerable(node), addSuccessors, out result);
Collections\UnionCollection.cs (1)
56return SpecializedCollections.EmptyCollection<T>();
CommandLine\CommandLineParser.cs (1)
62return SpecializedCollections.EmptyEnumerable<string>();
CommandLine\CommonCompiler.cs (2)
491return SpecializedCollections.EmptyReadOnlySet<string>(); 502return SpecializedCollections.StronglyTypedReadOnlySet(set);
Compilation\Compilation.cs (1)
858return CommonWithReferences(SpecializedCollections.EmptyEnumerable<MetadataReference>());
Diagnostic\Diagnostic.cs (1)
484get { return SpecializedCollections.EmptyReadOnlyList<object?>(); }
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
51_additionalLocations = additionalLocations?.ToImmutableArray() ?? SpecializedCollections.EmptyReadOnlyList<Location>();
Diagnostic\DiagnosticBag.cs (1)
266return _lazyBag ?? SpecializedCollections.EmptyEnumerable<Diagnostic>();
Diagnostic\DiagnosticInfo.cs (1)
295return SpecializedCollections.EmptyReadOnlyList<Location>();
DiagnosticAnalyzer\AnalysisResult.cs (1)
78return GetDiagnostics(SpecializedCollections.SingletonEnumerable(analyzer));
DiagnosticAnalyzer\AnalyzerManager.cs (1)
40_analyzerExecutionContextMap = CreateAnalyzerExecutionContextMap(SpecializedCollections.SingletonEnumerable(analyzer));
Emit\CommonPEModuleBuilder.cs (2)
46private IEnumerable<EmbeddedText> _embeddedTexts = SpecializedCollections.EmptyEnumerable<EmbeddedText>(); 372IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\EditAndContinue\SymbolChanges.cs (1)
466replacedSymbols = lazyReplacedSymbolsBuilder ?? SpecializedCollections.EmptySet<ISymbolInternal>();
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)
270return SpecializedCollections.EmptyEnumerable<Cci.MethodImplementation>(); 301return SpecializedCollections.EmptyEnumerable<Cci.IGenericTypeParameter>(); 489return SpecializedCollections.EmptyEnumerable<Cci.INestedTypeDefinition>(); 521return 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>();
InternalUtilities\SetWithInsertionOrder.cs (2)
90=> _elements is null ? SpecializedCollections.EmptyEnumerator<T>() : ((IEnumerable<T>)_elements).GetEnumerator(); 99=> (IReadOnlySet<T>?)_set ?? SpecializedCollections.EmptyReadOnlySet<T>();
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>()));
Operations\IOperation.OperationList.cs (1)
61return SpecializedCollections.EmptyEnumerator<IOperation>();
Operations\IOperation.OperationList.Reversed.cs (1)
75return SpecializedCollections.EmptyEnumerator<IOperation>();
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 (9)
34_methods = SpecializedCollections.SingletonReadOnlyList( 40return _methods ??= SpecializedCollections.EmptyReadOnlyList<IMethodDefinition>(); 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>();
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
851localBoundReferenceDirectives = SpecializedCollections.EmptyDictionary<(string, string), MetadataReference>();
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
35return GetDeclarationInfo(model, node, getSymbol, SpecializedCollections.SingletonEnumerable(executableCodeBlock), cancellationToken);
src\Dependencies\Collections\Extensions\IEnumerableExtensions.cs (4)
79return SpecializedCollections.EmptyBoxedImmutableArray<T>(); 84return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 89return SpecializedCollections.EmptyBoxedImmutableArray<T>(); 328return SpecializedCollections.EmptyEnumerable<T>();
Syntax\ChildSyntaxList.cs (2)
429return SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>(); 439return SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>();
Syntax\ChildSyntaxList.Reversed.cs (2)
38return SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>(); 48return SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>();
Syntax\GreenNode.cs (1)
51private static readonly IEnumerable<SyntaxAnnotation> s_noAnnotationsEnumerable = SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>();
Syntax\SeparatedSyntaxList.cs (2)
615return SpecializedCollections.EmptyEnumerator<TNode>(); 625return SpecializedCollections.EmptyEnumerator<TNode>();
Syntax\SyntaxDiffer.cs (2)
42return SpecializedCollections.EmptyList<TextChange>(); 77return SpecializedCollections.EmptyList<TextSpan>();
Syntax\SyntaxList`1.cs (2)
448return SpecializedCollections.EmptyEnumerator<TNode>(); 458return SpecializedCollections.EmptyEnumerator<TNode>();
Syntax\SyntaxNode.cs (1)
804SpecializedCollections.EmptyEnumerable<SyntaxNode>();
Syntax\SyntaxNodeExtensions_Tracking.cs (2)
134return SpecializedCollections.EmptyReadOnlyList<SyntaxNode>(); 232return SpecializedCollections.EmptyReadOnlyList<SyntaxNode>();
Syntax\SyntaxNodeOrToken.cs (4)
478return SpecializedCollections.EmptyEnumerable<Diagnostic>(); 593return SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 611return SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 866directives = buffer ?? SpecializedCollections.EmptyList<TDirective>();
Syntax\SyntaxNodeOrTokenList.cs (3)
316return InsertRange(index, SpecializedCollections.SingletonEnumerable(nodeOrToken)); 455? SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>() 468? SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>()
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\SyntaxTokenList.cs (2)
458return SpecializedCollections.EmptyEnumerator<SyntaxToken>(); 468return SpecializedCollections.EmptyEnumerator<SyntaxToken>();
Syntax\SyntaxTokenList.Reversed.cs (2)
39return SpecializedCollections.EmptyEnumerator<SyntaxToken>(); 49return SpecializedCollections.EmptyEnumerator<SyntaxToken>();
Syntax\SyntaxTrivia.cs (2)
182: SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 192: SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>();
Syntax\SyntaxTriviaList.cs (2)
432return SpecializedCollections.EmptyEnumerator<SyntaxTrivia>(); 442return SpecializedCollections.EmptyEnumerator<SyntaxTrivia>();
Syntax\SyntaxTriviaList.Reversed.cs (2)
38return SpecializedCollections.EmptyEnumerator<SyntaxTrivia>(); 49return SpecializedCollections.EmptyEnumerator<SyntaxTrivia>();
Text\TextChange.cs (1)
98public static IReadOnlyList<TextChange> NoChanges => SpecializedCollections.EmptyReadOnlyList<TextChange>();
Text\TextChangeRange.cs (1)
94public static IReadOnlyList<TextChangeRange> NoChanges => SpecializedCollections.EmptyReadOnlyList<TextChangeRange>();
TreeDumper.cs (1)
243this.Children = children ?? SpecializedCollections.EmptyEnumerable<TreeDumperNode>();
Microsoft.CodeAnalysis.CSharp (86)
Binder\Binder.CapturedParametersFinder.cs (2)
38return SpecializedCollections.EmptyReadOnlyDictionary<ParameterSymbol, FieldSymbol>(); 73return SpecializedCollections.EmptyReadOnlyDictionary<ParameterSymbol, FieldSymbol>();
Compilation\CSharpCompilation.cs (2)
391(syntaxTree != null) ? new[] { syntaxTree } : SpecializedCollections.EmptyEnumerable<SyntaxTree>(), 3444manifestResources = SpecializedCollections.EmptyEnumerable<ResourceDescription>();
Declarations\DeclarationTable.cs (1)
239return SpecializedCollections.ReadOnlySet(set);
Emitter\EditAndContinue\EmitHelpers.cs (1)
41var 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)
715return AdaptedNamedTypeSymbol.GetSecurityInformation() ?? SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emitter\Model\PEModuleBuilder.cs (2)
144public sealed override IEnumerable<string> LinkedAssembliesDebugInfo => SpecializedCollections.EmptyEnumerable<string>(); 548return SpecializedCollections.EmptyEnumerable<Cci.INamespaceTypeDefinition>();
Emitter\Model\PENetModuleBuilder.cs (1)
53public 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>();
Errors\CSDiagnosticInfo.cs (1)
43_additionalLocations = additionalLocations.IsDefaultOrEmpty ? SpecializedCollections.EmptyReadOnlyList<Location>() : additionalLocations;
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)
30return badRegion ? SpecializedCollections.EmptyEnumerable<Symbol>() : walker._variablesDeclared;
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (2)
134? SpecializedCollections.SingletonEnumerable(SingletonCache) 135: SpecializedCollections.EmptyEnumerable<FieldSymbol>();
Lowering\SynthesizedMethodBaseSymbol.cs (1)
184: SpecializedCollections.EmptyEnumerable<SecurityAttribute>();
src\Compilers\CSharp\CSharpAnalyzerDriver\CSharpDeclarationComputer.cs (6)
156var codeBlocks = SpecializedCollections.SingletonEnumerable(t.EqualsValue).Concat(attributes); 193var codeBlocks = SpecializedCollections.SingletonEnumerable(decl.Initializer).Concat(attributes); 228var codeBlocks = SpecializedCollections.SingletonEnumerable(t.Initializer).Concat(attributes); 350SpecializedCollections.EmptyEnumerable<SyntaxNode>(); 353SpecializedCollections.SingletonEnumerable(parameter.Default).Concat(GetAttributes(parameter.AttributeLists)); 358SpecializedCollections.EmptyEnumerable<SyntaxNode>();
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (1)
176return SpecializedCollections.EmptyDictionary<INamespaceOrTypeSymbol, IAliasSymbol>();
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
289return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
237internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => SpecializedCollections.EmptyEnumerable<FieldSymbol>();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
335return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\ArrayTypeSymbol.cs (1)
492return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\DynamicTypeSymbol.cs (1)
257return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\ErrorTypeSymbol.cs (2)
137return SpecializedCollections.EmptyEnumerable<string>(); 572return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
224return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
96groups = SpecializedCollections.EmptyEnumerable<IGrouping<string, TypeDefinitionHandle>>();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (5)
1063return SpecializedCollections.EmptySet<string>(); 1066return SpecializedCollections.SingletonCollection(names.First()); 1080return SpecializedCollections.ReadOnlySet(names); 1687var memberNames = SpecializedCollections.ReadOnlyCollection(membersDict.Keys); 2754return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\MissingAssemblySymbol.cs (5)
157return SpecializedCollections.EmptyCollection<string>(); 165return SpecializedCollections.EmptyCollection<string>(); 195return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 200return SpecializedCollections.EmptyEnumerable<string>(); 217return SpecializedCollections.EmptyEnumerable<NamedTypeSymbol>();
Symbols\MissingModuleSymbol.cs (2)
135return SpecializedCollections.EmptyCollection<string>(); 143return SpecializedCollections.EmptyCollection<string>();
Symbols\NamespaceOrTypeSymbol.cs (1)
406return SpecializedCollections.EmptyEnumerable<NamespaceOrTypeSymbol>();
Symbols\NativeIntegerTypeSymbol.cs (1)
281return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\PointerTypeSymbol.cs (1)
319return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\PropertyOrEventSymbolExtensions.cs (2)
37return SpecializedCollections.EmptySet<T>(); 43return SpecializedCollections.EmptySet<T>();
Symbols\Source\SourceAssemblySymbol.cs (4)
2129return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2135return (result != null) ? result.Keys : SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2143return SpecializedCollections.EmptyEnumerable<string>(); 2850forwardedTypesFromSource = SpecializedCollections.EmptyDictionary<string, NamedTypeSymbol>();
Symbols\Source\SourceFixedFieldSymbol.cs (1)
216get { return SpecializedCollections.SingletonEnumerable(FixedElementFieldName); }
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1716return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListEnumeratorTypeSymbol.cs (2)
238internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); 269internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\ReadOnlyListType\SynthesizedReadOnlyListTypeSymbol.cs (2)
920internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); 957internal override IEnumerable<(MethodSymbol Body, MethodSymbol Implemented)> SynthesizedInterfaceMethodImpls() => SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (4)
33_parametersPassedToTheBase = SpecializedCollections.EmptyReadOnlySet<ParameterSymbol>(); 118return SpecializedCollections.EmptyEnumerable<FieldSymbol>(); 133_capturedParameters = SpecializedCollections.EmptyReadOnlyDictionary<ParameterSymbol, FieldSymbol>(); 202_parametersPassedToTheBase = SpecializedCollections.EmptyReadOnlySet<ParameterSymbol>();
Symbols\Synthesized\SynthesizedContainer.cs (2)
84public override IEnumerable<string> MemberNames => SpecializedCollections.EmptyEnumerable<string>(); 213return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
171internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => SpecializedCollections.EmptyEnumerable<FieldSymbol>(); 210return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedInlineArrayTypeSymbol.cs (2)
169internal override IEnumerable<Cci.SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); 194internal 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>(); 167internal override IEnumerable<SecurityAttribute> GetSecurityInformation() => SpecializedCollections.EmptyEnumerable<SecurityAttribute>(); 194return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\TypeParameterSymbol.cs (1)
722return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Syntax\CompilationUnitSyntax.cs (2)
25return SpecializedCollections.EmptyList<ReferenceDirectiveTriviaSyntax>(); 38return SpecializedCollections.EmptyList<LoadDirectiveTriviaSyntax>();
Syntax\CSharpSyntaxTree.cs (1)
797return SpecializedCollections.EmptyEnumerable<Diagnostic>();
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
186return SpecializedCollections.EmptyList<DirectiveTriviaSyntax>();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
3988var parsedArgs = DefaultParse(SpecializedCollections.EmptyEnumerable<string>(), WorkingDirectory);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
2725OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Emit\EmitMetadataTests.cs (1)
1415GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
45return SpecializedCollections.SingletonEnumerable(new object[] { TestOptions.Regular });
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\IndexerTests.cs (1)
2539SpecializedCollections.EmptyEnumerable<ElementAccessExpressionSyntax>() :
Symbols\MockNamedTypeSymbol.cs (1)
346return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Source\BaseClassTests.cs (1)
1576GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Symbols\Source\MethodTests.cs (6)
1684GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1728GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1775GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1829GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1970GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 2014GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Symbols\Source\PropertyTests.cs (2)
2507GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 2545GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (2)
AssemblyReference.cs (1)
43return SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
DkmUtilities.cs (1)
33return SpecializedCollections.EmptyEnumerable<DkmClrModuleInstance>();
Microsoft.CodeAnalysis.Scripting (2)
src\Compilers\Shared\GlobalAssemblyCacheHelpers\ClrGlobalAssemblyCache.cs (1)
102return SpecializedCollections.EmptyEnumerable<AssemblyIdentity>();
src\Compilers\Shared\GlobalAssemblyCacheHelpers\MonoGlobalAssemblyCache.cs (1)
154return SpecializedCollections.EmptyEnumerable<AssemblyIdentity>();
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\TestOperationVisitor.cs (3)
1793AssertEx.Equal(SpecializedCollections.SingletonEnumerable(operation.Operand).Concat(operation.DimensionSizes), operation.ChildOperations); 1799AssertEx.Equal(SpecializedCollections.SingletonEnumerable(operation.DeclarationGroup), operation.ChildOperations); 1821IEnumerable<IOperation> children = SpecializedCollections.SingletonEnumerable(operation.Operand).Concat(operation.Initializer);
CompilationVerifier.cs (1)
941return (metadata.Kind == MetadataImageKind.Assembly) ? ((AssemblyMetadata)metadata).GetModules().AsEnumerable() : SpecializedCollections.SingletonEnumerable((ModuleMetadata)metadata);
Microsoft.CodeAnalysis.UnitTests (5)
Collections\Extensions\EnumerableExtensionsTests.cs (4)
78Assert.Equal(-1, SpecializedCollections.SingletonList(5).IndexOf(6)); 79Assert.Equal(0, SpecializedCollections.SingletonList(5).IndexOf(5)); 90Assert.Equal(-1, SpecializedCollections.SingletonList(5).IndexOf(-6, comparer)); 91Assert.Equal(0, SpecializedCollections.SingletonList(5).IndexOf(-5, comparer));
InternalUtilities\SpecializedCollectionsTests.cs (1)
26: SpecializedCollections.EmptySet<int>();
VBCSCompiler (1)
src\Compilers\Server\VBCSCompiler\AnalyzerConsistencyChecker.cs (1)
88string? resolvedPath = FileUtilities.ResolveRelativePath(analyzerReference.FilePath, basePath: null, baseDirectory: baseDirectory, searchPaths: SpecializedCollections.EmptyEnumerable<string>(), fileExists: File.Exists);