255 references to SingletonEnumerable
Microsoft.CodeAnalysis.CodeStyle.LegacyTestFramework.UnitTestUtilities (1)
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (24)
Microsoft.CodeAnalysis.CSharp.Workspaces (12)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (3)
Formatting\CSharpFormattingTestBase.cs (2)
33return AssertFormatAsync(code, code, SpecializedCollections.SingletonEnumerable(new TextSpan(0, code.Length)), debugMode, changedOptionSet, testWithTransformation, parseOptions);
44return AssertFormatAsync(expected, code, SpecializedCollections.SingletonEnumerable(new TextSpan(0, code.Length)), debugMode, changedOptionSet, testWithTransformation, parseOptions);
Microsoft.CodeAnalysis.EditorFeatures (10)
Microsoft.CodeAnalysis.EditorFeatures.Cocoa (1)
Microsoft.CodeAnalysis.EditorFeatures.DiagnosticsTests.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Workspaces\TestHostProject.cs (1)
215: this(workspace, name, language, compilationOptions, parseOptions, SpecializedCollections.SingletonEnumerable(document), SpecializedCollections.EmptyEnumerable<TestHostDocument>(), SpecializedCollections.EmptyEnumerable<TestHostDocument>(), projectReferences, metadataReferences, analyzerReferences, assemblyName, defaultNamespace)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (36)
MetadataAsSource\MetadataAsSourceTests.cs (26)
981LanguageNames.CSharp, SpecializedCollections.SingletonEnumerable(metadataSource), languageVersion: "10");
1003LanguageNames.CSharp, SpecializedCollections.SingletonEnumerable(metadataSource), languageVersion: "9");
1025LanguageNames.CSharp, SpecializedCollections.SingletonEnumerable(metadataSource), languageVersion: "10");
1704using var context = TestContext.Create(LanguageNames.CSharp, SpecializedCollections.SingletonEnumerable(metadataSource));
2698SpecializedCollections.SingletonEnumerable(metadata),
2740SpecializedCollections.SingletonEnumerable(metadata),
3204SpecializedCollections.SingletonEnumerable(metadata),
3244SpecializedCollections.SingletonEnumerable(metadata),
3273SpecializedCollections.SingletonEnumerable(metadata),
4751SpecializedCollections.SingletonEnumerable(metadata),
4793SpecializedCollections.SingletonEnumerable(metadata),
4824SpecializedCollections.SingletonEnumerable(metadata),
4882SpecializedCollections.SingletonEnumerable(metadata),
4937SpecializedCollections.SingletonEnumerable(metadata),
5000SpecializedCollections.SingletonEnumerable(metadata),
5050SpecializedCollections.SingletonEnumerable(metadata),
5101SpecializedCollections.SingletonEnumerable(metadata),
5149SpecializedCollections.SingletonEnumerable(metadata),
5197SpecializedCollections.SingletonEnumerable(metadata),
5243SpecializedCollections.SingletonEnumerable(metadata),
5289SpecializedCollections.SingletonEnumerable(metadata),
5335SpecializedCollections.SingletonEnumerable(metadata),
5379SpecializedCollections.SingletonEnumerable(metadata),
5443SpecializedCollections.SingletonEnumerable(metadata),
5517SpecializedCollections.SingletonEnumerable(metadata),
5561SpecializedCollections.SingletonEnumerable(metadata),
Microsoft.CodeAnalysis.EditorFeatures.Wpf (5)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (5)
Microsoft.CodeAnalysis.Features (34)
FormatterHelper.cs (3)
33=> Format(node, SpecializedCollections.SingletonEnumerable(node.FullSpan), syntaxFormattingService, options, rules: null, cancellationToken: cancellationToken);
36=> Format(node, SpecializedCollections.SingletonEnumerable(spanToFormat), syntaxFormattingService, options, rules: null, cancellationToken: cancellationToken);
66=> GetFormattedTextChanges(node, SpecializedCollections.SingletonEnumerable(node.FullSpan), syntaxFormattingService, options, rules: null, cancellationToken: cancellationToken);
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Microsoft.CodeAnalysis.LanguageServerIndexFormat.Generator (1)
Microsoft.CodeAnalysis.Remote.Workspaces (1)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Features (28)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (11)
Microsoft.CodeAnalysis.VisualBasic.Workspaces.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces (36)
Formatting\Formatter.cs (11)
67=> FormatAsync(document, SpecializedCollections.SingletonEnumerable(span), options, cancellationToken);
71=> FormatAsync(document, SpecializedCollections.SingletonEnumerable(span), options, rules: null, cancellationToken);
190=> Format(node, SpecializedCollections.SingletonEnumerable(node.FullSpan), workspace, options, rules: null, cancellationToken);
193=> Format(node, SpecializedCollections.SingletonEnumerable(node.FullSpan), services, options, rules: null, cancellationToken);
205=> Format(node, SpecializedCollections.SingletonEnumerable(span), workspace, options, rules: null, cancellationToken: cancellationToken);
208=> Format(node, SpecializedCollections.SingletonEnumerable(span), services, options, rules: null, cancellationToken: cancellationToken);
250spans ??= SpecializedCollections.SingletonEnumerable(node.FullSpan);
270=> GetFormattedTextChanges(node, SpecializedCollections.SingletonEnumerable(node.FullSpan), workspace, options, rules: null, cancellationToken: cancellationToken);
273=> GetFormattedTextChanges(node, SpecializedCollections.SingletonEnumerable(node.FullSpan), services, options, rules: null, cancellationToken: cancellationToken);
285=> GetFormattedTextChanges(node, SpecializedCollections.SingletonEnumerable(span), workspace, options, rules: null, cancellationToken);
288=> GetFormattedTextChanges(node, SpecializedCollections.SingletonEnumerable(span), services, options, rules: null, cancellationToken);
Microsoft.CodeAnalysis.Workspaces.UnitTests (4)
Microsoft.VisualStudio.LanguageServices (10)
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Microsoft.VisualStudio.LanguageServices.UnitTests (10)