35 references to SingletonEnumerable
Microsoft.CodeAnalysis (8)
CodeGen\PrivateImplementationDetails.cs (1)
328return SpecializedCollections.SingletonEnumerable(_compilerGeneratedAttribute);
DeclarationComputer.cs (1)
34return GetDeclarationInfo(model, node, getSymbol, SpecializedCollections.SingletonEnumerable(executableCodeBlock), cancellationToken);
DiagnosticAnalyzer\AnalysisResult.cs (1)
77return GetDiagnostics(SpecializedCollections.SingletonEnumerable(analyzer));
DiagnosticAnalyzer\AnalysisScope.cs (2)
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 (1)
313return SpecializedCollections.SingletonEnumerable(firstLanguageName);
DiagnosticAnalyzer\AnalyzerManager.cs (1)
37_analyzerExecutionContextMap = CreateAnalyzerExecutionContextMap(SpecializedCollections.SingletonEnumerable(analyzer));
Syntax\SyntaxNodeOrTokenList.cs (1)
282return InsertRange(index, SpecializedCollections.SingletonEnumerable(nodeOrToken));
Microsoft.CodeAnalysis.CSharp (9)
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);
CSharpDeclarationComputer.cs (4)
154var codeBlocks = SpecializedCollections.SingletonEnumerable(t.EqualsValue).Concat(attributes); 191var codeBlocks = SpecializedCollections.SingletonEnumerable(decl.Initializer).Concat(attributes); 226var codeBlocks = SpecializedCollections.SingletonEnumerable(t.Initializer).Concat(attributes); 351SpecializedCollections.SingletonEnumerable(parameter.Default).Concat(GetAttributes(parameter.AttributeLists));
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
126? SpecializedCollections.SingletonEnumerable(SingletonCache)
Symbols\Source\SourceFixedFieldSymbol.cs (1)
215get { return SpecializedCollections.SingletonEnumerable(FixedElementFieldName); }
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
42return SpecializedCollections.SingletonEnumerable(new object[] { TestOptions.Regular });
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.VisualBasic (12)
Lowering\StateMachineRewriter\SynthesizedContainer.vb (1)
230Return SpecializedCollections.SingletonEnumerable(Of String)(WellKnownMemberNames.InstanceConstructorName)
Symbols\Source\SourceNamedTypeSymbol_ComClass.vb (1)
90Return SpecializedCollections.SingletonEnumerable(Of NamedTypeSymbol)(_syntheticInterfaces(0))
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)
VisualBasicDeclarationComputer.vb (5)
91Dim codeBlocks = SpecializedCollections.SingletonEnumerable(Of SyntaxNode)(t.Initializer).Concat(attributes) 107Dim codeBlocks = SpecializedCollections.SingletonEnumerable(initializer).Concat(attributes) 157Dim codeBlocks = SpecializedCollections.SingletonEnumerable(Of SyntaxNode)(methodBlock). 190SpecializedCollections.SingletonEnumerable(initializer).Concat(codeBlocks), 257Return SpecializedCollections.SingletonEnumerable(Of SyntaxNode)(parameter.Default).Concat(GetAttributes(parameter.AttributeLists))
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.vb (1)
32Return SpecializedCollections.SingletonEnumerable(