31 references to SingletonEnumerable
Microsoft.CodeAnalysis.CodeStyle (11)
AbstractTriviaDataFactory.FormattedWhitespace.cs (1)
54=> SpecializedCollections.SingletonEnumerable<TextChange>(new TextChange(textSpan, _newString));
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);
FormattingExtensions.cs (1)
37=> SpecializedCollections.SingletonEnumerable(rule).Concat(rules);
ImmutableHashMap.cs (1)
687=> SpecializedCollections.SingletonEnumerable(this);
IReadOnlyDictionaryExtensions.cs (1)
27case T s: return SpecializedCollections.SingletonEnumerable(s);
ISyntaxFactsExtensions.cs (1)
386=> service.SpansPreprocessorDirective(SpecializedCollections.SingletonEnumerable(node));
SymbolUsageAnalysis.cs (2)
37var operations = SpecializedCollections.SingletonEnumerable(rootOperation); 51var operations = SpecializedCollections.SingletonEnumerable(localFunctionOperation);
SymbolUsageAnalysis.DataFlowAnalyzer.cs (1)
155var operations = SpecializedCollections.SingletonEnumerable(basicBlock.BranchValue);
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
AbstractTypeInferenceService.AbstractTypeInferrer.cs (1)
89: SpecializedCollections.SingletonEnumerable(new TypeInferenceInfo(type));
IAddImportsService.cs (1)
50SpecializedCollections.SingletonEnumerable(newImport), generator, options, cancellationToken);
NamingStyleCodeFixProvider.cs (2)
155return SpecializedCollections.SingletonEnumerable( 164return SpecializedCollections.SingletonEnumerable(codeAction);
Microsoft.CodeAnalysis.CSharp.CodeStyle (1)
CSharpSemanticFacts.cs (1)
257return SpecializedCollections.SingletonEnumerable(
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (7)
CSharpTypeInferenceService.TypeInferrer.cs (6)
118return SpecializedCollections.SingletonEnumerable(typeInferenceInfo); 1658return SpecializedCollections.SingletonEnumerable( 2038? SpecializedCollections.SingletonEnumerable(new TypeInferenceInfo(namedType.TypeArguments[0])) 2092? SpecializedCollections.SingletonEnumerable(new TypeInferenceInfo(UnwrapTaskLike(type, isAsync))) 2312return SpecializedCollections.SingletonEnumerable(new TypeInferenceInfo( 2434return SpecializedCollections.SingletonEnumerable(new TypeInferenceInfo(Compilation.GetSpecialType(SpecialType.System_Boolean)));
ITypeSymbolExtensions.TypeSyntaxGeneratorVisitor.cs (1)
160.Concat(SpecializedCollections.SingletonEnumerable((
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (7)
ElasticTriviaFormattingRule.vb (2)
70SpecializedCollections.SingletonEnumerable(initializer.CloseBraceToken), 81SpecializedCollections.SingletonEnumerable(collectionInitializer.Initializer.CloseBraceToken),
SyntaxNodeExtensions.vb (1)
977Return SpecializedCollections.SingletonEnumerable(initializer.Value)
TriviaDataFactory.AbstractLineBreakTrivia.vb (1)
49Return SpecializedCollections.SingletonEnumerable(New TextChange(textSpan, Me._newString))
VisualBasicRemoveUnnecessaryImportsDiagnosticAnalyzer.vb (1)
57Return SpecializedCollections.SingletonEnumerable(tree.GetCompilationUnitRoot().Imports.GetContainedSpan())
VisualBasicSemanticFacts.vb (1)
230Return SpecializedCollections.SingletonEnumerable(semanticModel.GetDeclaredSymbol(memberDeclaration, cancellationToken))
VisualBasicSmartTokenFormatter.vb (1)
40Dim spans = SpecializedCollections.SingletonEnumerable(TextSpan.FromBounds(previousToken.SpanStart, token.Span.End))
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (1)
SpecialFormattingOperation.vb (1)
217SpecializedCollections.SingletonEnumerable(baseToken.GetNextToken(includeZeroWidth:=True)),