13 references to SingletonEnumerable
Microsoft.CodeAnalysis (6)
CodeGen\PrivateImplementationDetails.cs (1)
533
return SpecializedCollections.
SingletonEnumerable
(_compilerGeneratedAttribute);
Collections\TopologicalSort.cs (1)
27
return TryIterativeSort(SpecializedCollections.
SingletonEnumerable
(node), addSuccessors, out result);
DiagnosticAnalyzer\AnalysisResult.cs (1)
78
return GetDiagnostics(SpecializedCollections.
SingletonEnumerable
(analyzer));
DiagnosticAnalyzer\AnalyzerManager.cs (1)
40
_analyzerExecutionContextMap = CreateAnalyzerExecutionContextMap(SpecializedCollections.
SingletonEnumerable
(analyzer));
src\Compilers\Core\AnalyzerDriver\DeclarationComputer.cs (1)
35
return GetDeclarationInfo(model, node, getSymbol, SpecializedCollections.
SingletonEnumerable
(executableCodeBlock), cancellationToken);
Syntax\SyntaxNodeOrTokenList.cs (1)
316
return InsertRange(index, SpecializedCollections.
SingletonEnumerable
(nodeOrToken));
Microsoft.CodeAnalysis.CSharp (2)
Lowering\ClosureConversion\SynthesizedClosureEnvironment.cs (1)
134
? SpecializedCollections.
SingletonEnumerable
(SingletonCache)
Symbols\Source\SourceFixedFieldSymbol.cs (1)
216
get { return SpecializedCollections.
SingletonEnumerable
(FixedElementFieldName); }
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Attributes\InternalsVisibleToAndStrongNameTests.cs (1)
45
return SpecializedCollections.
SingletonEnumerable
(new object[] { TestOptions.Regular });
Microsoft.CodeAnalysis.Test.Utilities (4)
Compilation\TestOperationVisitor.cs (3)
1793
AssertEx.Equal(SpecializedCollections.
SingletonEnumerable
(operation.Operand).Concat(operation.DimensionSizes), operation.ChildOperations);
1799
AssertEx.Equal(SpecializedCollections.
SingletonEnumerable
(operation.DeclarationGroup), operation.ChildOperations);
1821
IEnumerable<IOperation> children = SpecializedCollections.
SingletonEnumerable
(operation.Operand).Concat(operation.Initializer);
CompilationVerifier.cs (1)
941
return (metadata.Kind == MetadataImageKind.Assembly) ? ((AssemblyMetadata)metadata).GetModules().AsEnumerable() : SpecializedCollections.
SingletonEnumerable
((ModuleMetadata)metadata);