317 references to SpecializedCollections
Microsoft.CodeAnalysis (115)
AdditionalTextFile.cs (1)
32_diagnostics = SpecializedCollections.EmptyList<DiagnosticInfo>();
CodeGen\ArrayMembers.cs (1)
354=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
CodeGen\PrivateImplementationDetails.cs (13)
328return SpecializedCollections.SingletonEnumerable(_compilerGeneratedAttribute); 331return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 519=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 623=> SpecializedCollections.EmptyEnumerable<Cci.IEventDefinition>(); 626=> SpecializedCollections.EmptyEnumerable<Cci.MethodImplementation>(); 629=> SpecializedCollections.EmptyEnumerable<Cci.IFieldDefinition>(); 632=> SpecializedCollections.EmptyEnumerable<Cci.IGenericTypeParameter>(); 639=> SpecializedCollections.EmptyEnumerable<Cci.TypeReferenceWithAttributes>(); 664=> SpecializedCollections.EmptyEnumerable<Cci.IMethodDefinition>(); 667=> SpecializedCollections.EmptyEnumerable<Cci.INestedTypeDefinition>(); 670=> SpecializedCollections.EmptyEnumerable<Cci.IPropertyDefinition>(); 673=> SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); 678=> SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Collections\UnionCollection.cs (1)
55return SpecializedCollections.EmptyCollection<T>();
CommandLine\CommandLineParser.cs (1)
61return SpecializedCollections.EmptyEnumerable<string>();
CommandLine\CommonCompiler.cs (2)
488return SpecializedCollections.EmptyReadOnlySet<string>(); 499return SpecializedCollections.StronglyTypedReadOnlySet(set);
Compilation\Compilation.cs (1)
838return CommonWithReferences(SpecializedCollections.EmptyEnumerable<MetadataReference>());
DeclarationComputer.cs (1)
34return GetDeclarationInfo(model, node, getSymbol, SpecializedCollections.SingletonEnumerable(executableCodeBlock), cancellationToken);
Diagnostic\Diagnostic.cs (1)
481get { return SpecializedCollections.EmptyReadOnlyList<object?>(); }
Diagnostic\Diagnostic_SimpleDiagnostic.cs (1)
50_additionalLocations = additionalLocations?.ToImmutableArray() ?? SpecializedCollections.EmptyReadOnlyList<Location>();
Diagnostic\DiagnosticBag.cs (1)
258return _lazyBag ?? SpecializedCollections.EmptyEnumerable<Diagnostic>();
Diagnostic\DiagnosticInfo.cs (1)
351return SpecializedCollections.EmptyReadOnlyList<Location>();
DiagnosticAnalyzer\AnalysisResult.cs (1)
77return GetDiagnostics(SpecializedCollections.SingletonEnumerable(analyzer));
DiagnosticAnalyzer\AnalysisScope.cs (4)
77: this(filterFile.SourceTree != null ? SpecializedCollections.SingletonEnumerable(filterFile.SourceTree) : SpecializedCollections.EmptyEnumerable<SyntaxTree>(), 78filterFile.AdditionalFile != null ? SpecializedCollections.SingletonEnumerable(filterFile.AdditionalFile) : SpecializedCollections.EmptyEnumerable<AdditionalText>(),
DiagnosticAnalyzer\AnalyzerFileReference.cs (4)
264return result ?? SpecializedCollections.EmptyEnumerable<string>(); 305return SpecializedCollections.EmptyEnumerable<string>(); 313return SpecializedCollections.SingletonEnumerable(firstLanguageName); 320return SpecializedCollections.EmptyEnumerable<string>();
DiagnosticAnalyzer\AnalyzerManager.cs (1)
37_analyzerExecutionContextMap = CreateAnalyzerExecutionContextMap(SpecializedCollections.SingletonEnumerable(analyzer));
Emit\CommonPEModuleBuilder.cs (2)
44private IEnumerable<EmbeddedText> _embeddedTexts = SpecializedCollections.EmptyEnumerable<EmbeddedText>(); 264IEnumerable<Cci.ICustomAttribute> Cci.IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\EditAndContinue\SymbolChanges.cs (2)
501replaceSymbols = lazyReplaceSymbolsBuilder ?? SpecializedCollections.EmptySet<ISymbol>(); 502deletedMembers = lazyDeletedMembersBuilder ?? SpecializedCollections.EmptyReadOnlyDictionary<ISymbol, ISet<ISymbol>>();
Emit\ErrorType.cs (2)
170return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 234return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\CommonEmbeddedMethod.cs (2)
220return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 230SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedType.cs (4)
268return SpecializedCollections.EmptyEnumerable<Cci.MethodImplementation>(); 299return SpecializedCollections.EmptyEnumerable<Cci.IGenericTypeParameter>(); 487return SpecializedCollections.EmptyEnumerable<Cci.INestedTypeDefinition>(); 519return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emit\NoPia\CommonEmbeddedTypeParameter.cs (1)
194return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emit\NoPia\VtblGap.cs (4)
31get { return SpecializedCollections.EmptyEnumerable<Cci.IGenericMethodParameter>(); } 121return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>(); 141get { return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>(); } 170return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
InternalUtilities\EnumerableExtensions.cs (4)
75return SpecializedCollections.EmptyBoxedImmutableArray<T>(); 80return array.IsDefaultOrEmpty ? SpecializedCollections.EmptyBoxedImmutableArray<T>() : (IReadOnlyList<T>)items; 85return SpecializedCollections.EmptyBoxedImmutableArray<T>(); 292return SpecializedCollections.EmptyEnumerable<T>();
InternalUtilities\SetWithInsertionOrder.cs (1)
89=> _elements is null ? SpecializedCollections.EmptyEnumerator<T>() : ((IEnumerable<T>)_elements).GetEnumerator();
MetadataReader\PEAssembly.cs (1)
169return result ?? SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>();
MetadataReader\PEModule.cs (1)
670result.Add(new Grouping<string, TypeDefinitionHandle>(pair.Key, pair.Value ?? SpecializedCollections.EmptyEnumerable<TypeDefinitionHandle>()));
Operations\IOperation.OperationList.cs (1)
60return SpecializedCollections.EmptyEnumerator<IOperation>();
Operations\IOperation.OperationList.Reversed.cs (1)
74return SpecializedCollections.EmptyEnumerator<IOperation>();
PEWriter\ManagedResource.cs (1)
91get { return SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); }
PEWriter\ModifiedTypeReference.cs (1)
72return SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
PEWriter\RootModuleStaticConstructor.cs (3)
34public IEnumerable<IGenericMethodParameter> GenericParameters => SpecializedCollections.EmptyEnumerable<IGenericMethodParameter>(); 110public IEnumerable<ICustomAttribute> GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 120public IEnumerable<ICustomAttribute> GetReturnValueAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
PEWriter\RootModuleType.cs (9)
32_methods = SpecializedCollections.SingletonReadOnlyList( 38return _methods ??= SpecializedCollections.EmptyReadOnlyList<IMethodDefinition>(); 53return SpecializedCollections.EmptyEnumerable<ICustomAttribute>(); 83return SpecializedCollections.EmptyEnumerable<IEventDefinition>(); 88return SpecializedCollections.EmptyEnumerable<MethodImplementation>(); 93return SpecializedCollections.EmptyEnumerable<IFieldDefinition>(); 103return SpecializedCollections.EmptyEnumerable<Cci.TypeReferenceWithAttributes>(); 168return SpecializedCollections.EmptyEnumerable<INestedTypeDefinition>(); 173return SpecializedCollections.EmptyEnumerable<IPropertyDefinition>();
ReferenceManager\CommonReferenceManager.Resolution.cs (1)
850localBoundReferenceDirectives = SpecializedCollections.EmptyDictionary<(string, string), MetadataReference>();
Syntax\ChildSyntaxList.cs (2)
369return SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>(); 379return SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>();
Syntax\ChildSyntaxList.Reversed.cs (2)
37return SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>(); 47return SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>();
Syntax\GreenNode.cs (1)
42private static readonly IEnumerable<SyntaxAnnotation> s_noAnnotationsEnumerable = SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>();
Syntax\SeparatedSyntaxList.cs (2)
585return SpecializedCollections.EmptyEnumerator<TNode>(); 595return SpecializedCollections.EmptyEnumerator<TNode>();
Syntax\SyntaxDiffer.cs (2)
41return SpecializedCollections.EmptyList<TextChange>(); 76return SpecializedCollections.EmptyList<TextSpan>();
Syntax\SyntaxList`1.cs (2)
415return SpecializedCollections.EmptyEnumerator<TNode>(); 425return SpecializedCollections.EmptyEnumerator<TNode>();
Syntax\SyntaxNode.cs (1)
800SpecializedCollections.EmptyEnumerable<SyntaxNode>();
Syntax\SyntaxNodeExtensions_Tracking.cs (2)
134return SpecializedCollections.EmptyReadOnlyList<SyntaxNode>(); 232return SpecializedCollections.EmptyReadOnlyList<SyntaxNode>();
Syntax\SyntaxNodeOrToken.cs (4)
477return SpecializedCollections.EmptyEnumerable<Diagnostic>(); 592return SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 610return SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 846return directives ?? SpecializedCollections.EmptyList<TDirective>();
Syntax\SyntaxNodeOrTokenList.cs (3)
282return InsertRange(index, SpecializedCollections.SingletonEnumerable(nodeOrToken)); 421? SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>() 434? SpecializedCollections.EmptyEnumerator<SyntaxNodeOrToken>()
Syntax\SyntaxToken.cs (5)
273return Node?.GetAnnotations(annotationKind) ?? SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 289return Node?.GetAnnotations(annotationKinds) ?? SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 532return SpecializedCollections.EmptyEnumerable<SyntaxTrivia>(); 663return SpecializedCollections.EmptyEnumerable<Diagnostic>(); 673? SpecializedCollections.EmptyEnumerable<Diagnostic>()
Syntax\SyntaxTokenList.cs (2)
447return SpecializedCollections.EmptyEnumerator<SyntaxToken>(); 457return SpecializedCollections.EmptyEnumerator<SyntaxToken>();
Syntax\SyntaxTokenList.Reversed.cs (2)
38return SpecializedCollections.EmptyEnumerator<SyntaxToken>(); 48return SpecializedCollections.EmptyEnumerator<SyntaxToken>();
Syntax\SyntaxTrivia.cs (2)
181: SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>(); 191: SpecializedCollections.EmptyEnumerable<SyntaxAnnotation>();
Syntax\SyntaxTriviaList.cs (2)
413return SpecializedCollections.EmptyEnumerator<SyntaxTrivia>(); 423return SpecializedCollections.EmptyEnumerator<SyntaxTrivia>();
Syntax\SyntaxTriviaList.Reversed.cs (2)
37return SpecializedCollections.EmptyEnumerator<SyntaxTrivia>(); 48return SpecializedCollections.EmptyEnumerator<SyntaxTrivia>();
Text\TextChange.cs (1)
97public static IReadOnlyList<TextChange> NoChanges => SpecializedCollections.EmptyReadOnlyList<TextChange>();
Text\TextChangeRange.cs (1)
93public static IReadOnlyList<TextChangeRange> NoChanges => SpecializedCollections.EmptyReadOnlyList<TextChangeRange>();
TreeDumper.cs (1)
242this.Children = children ?? SpecializedCollections.EmptyEnumerable<TreeDumperNode>();
Microsoft.CodeAnalysis.CSharp (77)
Binder\Binder.CapturedParametersFinder.cs (2)
38return SpecializedCollections.EmptyReadOnlyDictionary<ParameterSymbol, FieldSymbol>(); 73return SpecializedCollections.EmptyReadOnlyDictionary<ParameterSymbol, FieldSymbol>();
Binder\DecisionDagBuilder.cs (1)
1605return TopologicalSort.TryIterativeSort<DagState>(SpecializedCollections.SingletonEnumerable<DagState>(this.RootNode), Successor, out result);
Binder\SwitchExpressionBinder.cs (1)
87bool wasAcyclic = TopologicalSort.TryIterativeSort<BoundDecisionDagNode>(SpecializedCollections.SingletonEnumerable(decisionDag.RootNode), nonNullSuccessors, out var nodes);
BoundTree\BoundDecisionDag.cs (1)
72bool wasAcyclic = TopologicalSort.TryIterativeSort<BoundDecisionDagNode>(SpecializedCollections.SingletonEnumerable(this.RootNode), Successors, out _topologicallySortedNodes);
Compilation\CSharpCompilation.cs (2)
366(syntaxTree != null) ? new[] { syntaxTree } : SpecializedCollections.EmptyEnumerable<SyntaxTree>(), 3145manifestResources = SpecializedCollections.EmptyEnumerable<ResourceDescription>();
CSharpDeclarationComputer.cs (6)
154var codeBlocks = SpecializedCollections.SingletonEnumerable(t.EqualsValue).Concat(attributes); 191var codeBlocks = SpecializedCollections.SingletonEnumerable(decl.Initializer).Concat(attributes); 226var codeBlocks = SpecializedCollections.SingletonEnumerable(t.Initializer).Concat(attributes); 348SpecializedCollections.EmptyEnumerable<SyntaxNode>(); 351SpecializedCollections.SingletonEnumerable(parameter.Default).Concat(GetAttributes(parameter.AttributeLists)); 356SpecializedCollections.EmptyEnumerable<SyntaxNode>();
Declarations\DeclarationTable.cs (1)
238return SpecializedCollections.ReadOnlySet(set);
Emitter\EditAndContinue\EmitHelpers.cs (1)
38var manifestResources = SpecializedCollections.EmptyEnumerable<ResourceDescription>();
Emitter\Model\AssemblyReference.cs (1)
50return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\FunctionPointerTypeSymbolAdapter.cs (1)
54IEnumerable<ICustomAttribute> IReference.GetAttributes(EmitContext context) => SpecializedCollections.EmptyEnumerable<ICustomAttribute>();
Emitter\Model\ModuleReference.cs (1)
83return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\NamedTypeReference.cs (1)
156return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
704return AdaptedNamedTypeSymbol.GetSecurityInformation() ?? SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Emitter\Model\PEModuleBuilder.cs (2)
142public sealed override IEnumerable<string> LinkedAssembliesDebugInfo => SpecializedCollections.EmptyEnumerable<string>(); 529return SpecializedCollections.EmptyEnumerable<Cci.INamespaceTypeDefinition>();
Emitter\Model\PENetModuleBuilder.cs (1)
41public override IEnumerable<Cci.IFileReference> GetFiles(EmitContext context) => SpecializedCollections.EmptyEnumerable<Cci.IFileReference>();
Emitter\Model\SymbolAdapter.cs (1)
122return SpecializedCollections.EmptyEnumerable<CSharpAttributeData>();
Emitter\Model\TypeMemberReference.cs (1)
41return SpecializedCollections.EmptyEnumerable<Cci.ICustomAttribute>();
Errors\CSDiagnosticInfo.cs (1)
42_additionalLocations = additionalLocations.IsDefaultOrEmpty ? SpecializedCollections.EmptyReadOnlyList<Location>() : additionalLocations;
FlowAnalysis\AlwaysAssignedWalker.cs (1)
39return badRegion ? SpecializedCollections.EmptyEnumerable<Symbol>() : result;
FlowAnalysis\EmptyStructTypeCache.cs (1)
173return SpecializedCollections.EmptyEnumerable<FieldSymbol>();
FlowAnalysis\EntryPointsWalker.cs (1)
32return badRegion ? SpecializedCollections.EmptyEnumerable<LabeledStatementSyntax>() : result;
FlowAnalysis\VariablesDeclaredWalker.cs (1)
29return badRegion ? SpecializedCollections.EmptyEnumerable<Symbol>() : walker._variablesDeclared;
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (2)
126? SpecializedCollections.SingletonEnumerable(SingletonCache) 127: SpecializedCollections.EmptyEnumerable<FieldSymbol>();
Lowering\SynthesizedMethodBaseSymbol.cs (1)
195: SpecializedCollections.EmptyEnumerable<SecurityAttribute>();
SymbolDisplay\SymbolDisplayVisitor_Minimal.cs (2)
170return SpecializedCollections.EmptyDictionary<INamespaceOrTypeSymbol, IAliasSymbol>(); 293? SpecializedCollections.EmptyEnumerable<T>()
Symbols\AnonymousTypes\PublicSymbols\AnonymousManager.TypeOrDelegatePublicSymbol.cs (1)
279return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.DelegateTemplateSymbol.cs (1)
223internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => SpecializedCollections.EmptyEnumerable<FieldSymbol>();
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousType.TypeOrDelegateTemplateSymbol.cs (1)
319return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\ArrayTypeSymbol.cs (1)
488return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\DynamicTypeSymbol.cs (1)
254return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\ErrorTypeSymbol.cs (2)
129return SpecializedCollections.EmptyEnumerable<string>(); 556return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\FunctionPointers\FunctionPointerTypeSymbol.cs (1)
222return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.cs (1)
94groups = SpecializedCollections.EmptyEnumerable<IGrouping<string, TypeDefinitionHandle>>();
Symbols\Metadata\PE\PENamedTypeSymbol.cs (5)
844return SpecializedCollections.EmptySet<string>(); 847return SpecializedCollections.SingletonCollection(names.First()); 861return SpecializedCollections.ReadOnlySet(names); 1468var memberNames = SpecializedCollections.ReadOnlyCollection(membersDict.Keys); 2445return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\MissingAssemblySymbol.cs (4)
152return SpecializedCollections.EmptyCollection<string>(); 160return SpecializedCollections.EmptyCollection<string>(); 190return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 205return SpecializedCollections.EmptyEnumerable<NamedTypeSymbol>();
Symbols\MissingModuleSymbol.cs (2)
134return SpecializedCollections.EmptyCollection<string>(); 142return SpecializedCollections.EmptyCollection<string>();
Symbols\NamespaceOrTypeSymbol.cs (1)
388return SpecializedCollections.EmptyEnumerable<NamespaceOrTypeSymbol>();
Symbols\NativeIntegerTypeSymbol.cs (1)
275return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\PointerTypeSymbol.cs (1)
316return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\PropertyOrEventSymbolExtensions.cs (2)
36return SpecializedCollections.EmptySet<T>(); 42return SpecializedCollections.EmptySet<T>();
Symbols\Source\SourceAssemblySymbol.cs (3)
2113return SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2119return (result != null) ? result.Keys : SpecializedCollections.EmptyEnumerable<ImmutableArray<byte>>(); 2802forwardedTypesFromSource = SpecializedCollections.EmptyDictionary<string, NamedTypeSymbol>();
Symbols\Source\SourceFixedFieldSymbol.cs (1)
215get { return SpecializedCollections.SingletonEnumerable(FixedElementFieldName); }
Symbols\Source\SourceMethodSymbolWithAttributes.cs (1)
1273return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\Synthesized\Records\SynthesizedPrimaryConstructor.cs (2)
80return SpecializedCollections.EmptyEnumerable<FieldSymbol>(); 95_capturedParameters = SpecializedCollections.EmptyReadOnlyDictionary<ParameterSymbol, FieldSymbol>();
Symbols\Synthesized\SynthesizedContainer.cs (2)
90public override IEnumerable<string> MemberNames => SpecializedCollections.EmptyEnumerable<string>(); 207return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedEmbeddedAttributeSymbol.cs (2)
156internal override IEnumerable<FieldSymbol> GetFieldsToEmit() => SpecializedCollections.EmptyEnumerable<FieldSymbol>(); 195return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Synthesized\SynthesizedIntrinsicOperatorSymbol.cs (1)
165return SpecializedCollections.EmptyEnumerable<Cci.SecurityAttribute>();
Symbols\TypeParameterSymbol.cs (1)
712return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Syntax\CompilationUnitSyntax.cs (2)
24return SpecializedCollections.EmptyList<ReferenceDirectiveTriviaSyntax>(); 37return SpecializedCollections.EmptyList<LoadDirectiveTriviaSyntax>();
Syntax\CSharpSyntaxTree.cs (1)
805return SpecializedCollections.EmptyEnumerable<Diagnostic>();
Syntax\InternalSyntax\CSharpSyntaxNode.cs (1)
206return SpecializedCollections.EmptyList<DirectiveTriviaSyntax>();
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
3807var parsedArgs = DefaultParse(SpecializedCollections.EmptyEnumerable<string>(), WorkingDirectory);
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (2)
Emit\CompilationEmitTests.cs (1)
2724OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Emit\EmitMetadataTests.cs (1)
1414GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
42return SpecializedCollections.SingletonEnumerable(new object[] { TestOptions.Regular });
Microsoft.CodeAnalysis.CSharp.ExpressionEvaluator.ExpressionCompiler (3)
EEAssemblyBuilder.cs (1)
38manifestResources: SpecializedCollections.EmptyEnumerable<ResourceDescription>(),
Symbols\EENamedTypeSymbol.cs (2)
107return SpecializedCollections.EmptyEnumerable<FieldSymbol>(); 373return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (11)
Symbols\IndexerTests.cs (1)
2537SpecializedCollections.EmptyEnumerable<ElementAccessExpressionSyntax>() :
Symbols\MockNamedTypeSymbol.cs (1)
338return SpecializedCollections.EmptyEnumerable<(MethodSymbol Body, MethodSymbol Implemented)>();
Symbols\Source\BaseClassTests.cs (1)
1575GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Symbols\Source\MethodTests.cs (6)
1683GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1727GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1774GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1828GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 1969GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 2013GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>());
Symbols\Source\PropertyTests.cs (2)
2506GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable<ResourceDescription>()); 2544GetDefaultModulePropertiesForSerialization(), 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)
ClrGlobalAssemblyCache.cs (1)
99return SpecializedCollections.EmptyEnumerable<AssemblyIdentity>();
MonoGlobalAssemblyCache.cs (1)
153return SpecializedCollections.EmptyEnumerable<AssemblyIdentity>();
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\IRuntimeEnvironment.cs (1)
87return (metadata.Kind == MetadataImageKind.Assembly) ? ((AssemblyMetadata)metadata).GetModules().AsEnumerable() : SpecializedCollections.SingletonEnumerable((ModuleMetadata)metadata);
Compilation\TestOperationVisitor.cs (3)
1774AssertEx.Equal(SpecializedCollections.SingletonEnumerable(operation.Operand).Concat(operation.DimensionSizes), operation.ChildOperations); 1780AssertEx.Equal(SpecializedCollections.SingletonEnumerable(operation.DeclarationGroup), operation.ChildOperations); 1802IEnumerable<IOperation> children = SpecializedCollections.SingletonEnumerable(operation.Operand).Concat(operation.Initializer);
Microsoft.CodeAnalysis.UnitTests (5)
Collections\EnumerableExtensionsTests.cs (4)
58Assert.Equal(-1, ((IEnumerable<int>)SpecializedCollections.SingletonList(5)).IndexOf(6)); 59Assert.Equal(0, ((IEnumerable<int>)SpecializedCollections.SingletonList(5)).IndexOf(5)); 73Assert.Equal(-1, ((IEnumerable<int>)SpecializedCollections.SingletonList(5)).IndexOf(-6, comparer)); 74Assert.Equal(0, ((IEnumerable<int>)SpecializedCollections.SingletonList(5)).IndexOf(-5, comparer));
InternalUtilities\SpecializedCollectionsTests.cs (1)
25: SpecializedCollections.EmptySet<int>();
Microsoft.CodeAnalysis.VisualBasic (79)
Analysis\FlowAnalysis\AlwaysAssignedWalker.vb (1)
28Return If(result, walker.AlwaysAssigned, SpecializedCollections.EmptyEnumerable(Of Symbol)())
Analysis\FlowAnalysis\EntryPointsWalker.vb (1)
25Return If(succeeded, walker._entryPoints, SpecializedCollections.EmptyEnumerable(Of LabelStatementSyntax)())
Analysis\FlowAnalysis\ExitPointsWalker.vb (1)
24Return If(walker.Analyze(), walker._branchesOutOf.ToImmutable(), SpecializedCollections.EmptyEnumerable(Of StatementSyntax)())
Analysis\FlowAnalysis\VariablesDeclaredWalker.vb (1)
20Return If(walker.Analyze(), walker._variablesDeclared, SpecializedCollections.EmptyEnumerable(Of Symbol)())
CommandLine\VisualBasicCommandLineParser.vb (2)
1666Return SpecializedCollections.EmptyEnumerable(Of CommandLineReference)() 1677Return SpecializedCollections.EmptyEnumerable(Of CommandLineAnalyzerReference)()
Compilation\VisualBasicCompilation.vb (2)
357If((syntaxTree IsNot Nothing), {syntaxTree}, SpecializedCollections.EmptyEnumerable(Of SyntaxTree)()), 2398manifestResources = SpecializedCollections.EmptyEnumerable(Of ResourceDescription)()
Emit\AssemblyReference.vb (1)
53Return SpecializedCollections.EmptyEnumerable(Of Cci.ICustomAttribute)()
Emit\EditAndContinue\EmitHelpers.vb (1)
35Dim manifestResources = SpecializedCollections.EmptyEnumerable(Of ResourceDescription)()
Emit\EditAndContinue\PEDeltaAssemblyBuilder.vb (5)
120Dim anonymousDelegates = SpecializedCollections.EmptyReadOnlyDictionary(Of SynthesizedDelegateKey, SynthesizedDelegateValue) 121Dim anonymousDelegatesWithIndexedNames = SpecializedCollections.EmptyReadOnlyDictionary(Of String, AnonymousTypeValue) 242Return SpecializedCollections.EmptyReadOnlyDictionary(Of SynthesizedDelegateKey, SynthesizedDelegateValue) 247Return SpecializedCollections.EmptyReadOnlyDictionary(Of String, AnonymousTypeValue) 304Return SpecializedCollections.EmptyEnumerable(Of String)()
Emit\ModuleReference.vb (1)
66Return SpecializedCollections.EmptyEnumerable(Of Cci.ICustomAttribute)()
Emit\NamedTypeReference.vb (1)
111Return SpecializedCollections.EmptyEnumerable(Of Cci.ICustomAttribute)()
Emit\NamedTypeSymbolAdapter.vb (3)
268Return SpecializedCollections.EmptyEnumerable(Of Cci.MethodImplementation)() 663result = SpecializedCollections.EmptyEnumerable(Of INestedTypeDefinition)() 930Return If(synthesized, SpecializedCollections.EmptyEnumerable(Of NamedTypeSymbol)())
Emit\PEModuleBuilder.vb (1)
345Return SpecializedCollections.EmptyEnumerable(Of Cci.INamespaceTypeDefinition)
Emit\PENetModuleBuilder.vb (1)
48Return SpecializedCollections.EmptyEnumerable(Of Cci.IFileReference)()
Emit\SymbolAdapter.vb (1)
97Return SpecializedCollections.EmptyEnumerable(Of VisualBasicAttributeData)()
Emit\TypeMemberReference.vb (1)
30Return SpecializedCollections.EmptyEnumerable(Of Cci.ICustomAttribute)()
Lowering\LambdaRewriter\LambdaFrame.vb (1)
203Return SpecializedCollections.EmptyEnumerable(Of String)()
Lowering\LocalRewriter\LocalRewriter.vb (1)
255SpecializedCollections.EmptySet(Of Symbol),
Lowering\Rewriter.vb (1)
100If(symbolsCapturedWithoutCopyCtor, SpecializedCollections.EmptySet(Of Symbol)),
Lowering\StateMachineRewriter\SynthesizedContainer.vb (3)
230Return SpecializedCollections.SingletonEnumerable(Of String)(WellKnownMemberNames.InstanceConstructorName) 235Return SpecializedCollections.EmptyEnumerable(Of FieldSymbol)() 322Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\AnonymousTypes\PublicSymbols\AnonymousTypeOrDelegatePublicSymbol.vb (1)
313Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousDelegate_TemplateSymbol.vb (1)
136Return SpecializedCollections.EmptyEnumerable(Of FieldSymbol)()
Symbols\AnonymousTypes\SynthesizedSymbols\AnonymousTypeOrDelegateTemplateSymbol.vb (1)
381Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\ErrorMethodSymbol.vb (1)
75Return SpecializedCollections.EmptyEnumerable(Of Microsoft.Cci.SecurityAttribute)()
Symbols\ErrorTypeSymbol.vb (3)
75Return SpecializedCollections.EmptyEnumerable(Of String)() 100Return SpecializedCollections.EmptyEnumerable(Of FieldSymbol)() 406Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\Metadata\PE\PEGlobalNamespaceSymbol.vb (1)
70groups = SpecializedCollections.EmptyEnumerable(Of IGrouping(Of String, TypeDefinitionHandle))()
Symbols\Metadata\PE\PENamedTypeSymbol.vb (3)
502SpecializedCollections.ReadOnlySet(names), 734Dim memberNames = SpecializedCollections.ReadOnlyCollection(membersDict.Keys) 1557Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\Metadata\PE\PEPropertyOrEventHelpers.vb (2)
28Return SpecializedCollections.EmptySet(Of T)() 33Return SpecializedCollections.EmptySet(Of T)()
Symbols\MissingAssemblySymbol.vb (4)
120Return SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))() 125Return SpecializedCollections.EmptyCollection(Of String)() 131Return SpecializedCollections.EmptyCollection(Of String)() 148Return SpecializedCollections.EmptyEnumerable(Of NamedTypeSymbol)()
Symbols\MissingModuleSymbol.vb (2)
102Return SpecializedCollections.EmptyCollection(Of String)() 108Return SpecializedCollections.EmptyCollection(Of String)()
Symbols\NamespaceOrTypeSymbol.vb (1)
256Return SpecializedCollections.EmptyEnumerable(Of NamespaceOrTypeSymbol)()
Symbols\Source\ImplicitNamedTypeSymbol.vb (1)
206Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\Source\SourceAssemblySymbol.vb (3)
619securityAttributes = SpecializedCollections.EmptyEnumerable(Of Cci.SecurityAttribute)() 896Return SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))() 903Return If(result IsNot Nothing, result.Keys, SpecializedCollections.EmptyEnumerable(Of ImmutableArray(Of Byte))())
Symbols\Source\SourceMethodSymbol.vb (1)
1934Return SpecializedCollections.EmptyEnumerable(Of SecurityAttribute)()
Symbols\Source\SourceNamedTypeSymbol.vb (2)
2155Return SpecializedCollections.EmptyEnumerable(Of Microsoft.Cci.SecurityAttribute)() 2593Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (3)
90Return SpecializedCollections.SingletonEnumerable(Of NamedTypeSymbol)(_syntheticInterfaces(0)) 791Return SpecializedCollections.EmptyEnumerable(Of FieldSymbol)() 1026Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (2)
93Return SpecializedCollections.EmptyEnumerable(Of FieldSymbol)() 445Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\Tuples\TupleTypeSymbol.vb (1)
1102Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Symbols\UnboundGenericType.vb (2)
338Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)() 625Return SpecializedCollections.EmptyCollection(Of String)()
Syntax\LambdaUtilities.vb (5)
361Return SpecializedCollections.SingletonEnumerable(DirectCast(lambda, SingleLineLambdaExpressionSyntax).Body) 375Return SpecializedCollections.SingletonEnumerable(lambdaBody) 381Return SpecializedCollections.SingletonEnumerable(lambdaBody) 402Return SpecializedCollections.SingletonEnumerable(lambdaBody) 411Return SpecializedCollections.SingletonEnumerable(lambdaBody)
Syntax\VisualBasicSyntaxTree.vb (1)
380Return SpecializedCollections.EmptyEnumerable(Of Diagnostic)()
VisualBasicDeclarationComputer.vb (8)
91Dim codeBlocks = SpecializedCollections.SingletonEnumerable(Of SyntaxNode)(t.Initializer).Concat(attributes) 107Dim codeBlocks = SpecializedCollections.SingletonEnumerable(initializer).Concat(attributes) 157Dim codeBlocks = SpecializedCollections.SingletonEnumerable(Of SyntaxNode)(methodBlock). 175Dim attributes = SpecializedCollections.EmptyEnumerable(Of SyntaxNode) 190SpecializedCollections.SingletonEnumerable(initializer).Concat(codeBlocks), 239SpecializedCollections.EmptyEnumerable(Of SyntaxNode)) 253SpecializedCollections.EmptyEnumerable(Of SyntaxNode)) 257Return SpecializedCollections.SingletonEnumerable(Of SyntaxNode)(parameter.Default).Concat(GetAttributes(parameter.AttributeLists))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (2)
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
32Return SpecializedCollections.SingletonEnumerable(
Emit\CompilationEmitTests.vb (1)
3276Dim assemblyBuilder = New PEAssemblyBuilder(sourceAssembly, emitOptions, OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable(Of ResourceDescription), Nothing)
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler (4)
EEAssemblyBuilder.vb (1)
40manifestResources:=SpecializedCollections.EmptyEnumerable(Of ResourceDescription)(),
Symbols\EENamedTypeSymbol.vb (3)
108Return SpecializedCollections.EmptyEnumerable(Of FieldSymbol)() 116Return SpecializedCollections.EmptyEnumerable(Of NamedTypeSymbol)() 369Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
SymbolsTests\Source\PropertyTests.vb (1)
8199Dim [module] = New PEAssemblyBuilder(DirectCast([class].ContainingAssembly, SourceAssemblySymbol), EmitOptions.Default, OutputKind.DynamicallyLinkedLibrary, GetDefaultModulePropertiesForSerialization(), SpecializedCollections.EmptyEnumerable(Of ResourceDescription)())
SymbolsTests\SymbolErrorTests.vb (1)
22504Assert.Equal(SpecializedCollections.EmptyCollection(Of String), errTypeSym.MemberNames)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (6)
MockSymbols.vb (6)
244Return SpecializedCollections.EmptyEnumerable(Of FieldSymbol)() 379Return SpecializedCollections.EmptyEnumerable(Of PropertySymbol)() 701Return SpecializedCollections.EmptyCollection(Of String)() 707Return SpecializedCollections.EmptyCollection(Of String)() 785Return SpecializedCollections.EmptyCollection(Of String)() 791Return SpecializedCollections.EmptyCollection(Of String)()
VBCSCompiler (1)
AnalyzerConsistencyChecker.cs (1)
66string? resolvedPath = FileUtilities.ResolveRelativePath(analyzerReference.FilePath, basePath: null, baseDirectory: baseDirectory, searchPaths: SpecializedCollections.EmptyEnumerable<string>(), fileExists: File.Exists);