6 instantiations of TemporaryArray
Microsoft.CodeAnalysis.Features (1)
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (1)
220var result = new TemporaryArray<(ISymbol?, ISymbol?, EditKind)>();
Microsoft.CodeAnalysis.Workspaces (5)
src\Dependencies\Collections\TemporaryArray`1.cs (2)
99return new TemporaryArray<T>() 456_array = new TemporaryArray<T>(in array);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
31TemporaryArray<(Lazy<TServiceInterface, TMetadata>? lazyService, bool usesFactory)> servicesOfMatchingType = new();
Workspace\Solution\SolutionState.cs (2)
364var langaugeCountDeltas = new TemporaryArray<(string language, int count)>(); 482var languageCountDeltas = new TemporaryArray<(string language, int count)>();
355 references to TemporaryArray
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
StringCopyPaste\StringInfo.cs (2)
202using var result = TemporaryArray<TextSpan>.Empty;
StringCopyPaste\UnknownSourcePasteProcessor.cs (2)
88using var textChanges = TemporaryArray<TextChange>.Empty;
Microsoft.CodeAnalysis.CSharp.Features (46)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (12)
26using var parts = TemporaryArray<TextSpan>.Empty; 43using var breaks = TemporaryArray<TextSpan>.Empty; 50in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 52using var result = TemporaryArray<Words>.Empty; 68private static Words GetLongestBackwardSubsequence(int length, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 75private static Words GetLongestForwardSubsequence(int length, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 78private static Words GetWords(int start, int end, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 80using var result = TemporaryArray<string>.Empty;
EditAndContinue\CSharpEditAndContinueAnalyzer.cs (1)
1066ref TemporaryArray<(ISymbol?, ISymbol?, EditKind)> result,
Highlighting\KeywordHighlighters\AsyncAwaitHighlighter.cs (1)
30protected override bool ContainsHighlightableToken(ref TemporaryArray<SyntaxToken> tokens)
Highlighting\KeywordHighlighters\IfStatementHighlighter.cs (1)
28protected override bool ContainsHighlightableToken(ref TemporaryArray<SyntaxToken> tokens)
Highlighting\KeywordHighlighters\LoopHighlighter.cs (1)
25protected override bool ContainsHighlightableToken(ref TemporaryArray<SyntaxToken> tokens)
Highlighting\KeywordHighlighters\SwitchStatementHighlighter.cs (1)
26protected override bool ContainsHighlightableToken(ref TemporaryArray<SyntaxToken> tokens)
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (2)
105using var nestedActions = TemporaryArray<CodeAction>.Empty;
InitializeParameter\CSharpInitializeMemberFromPrimaryConstructorParameterCodeRefactoringProvider.cs (2)
194using var result = TemporaryArray<IParameterSymbol>.Empty;
ReplacePropertyWithMethods\CSharpReplacePropertyWithMethodsService.cs (2)
70using var result = TemporaryArray<SyntaxNode>.Empty;
SignatureHelp\LightweightOverloadResolution.cs (7)
68using var argumentToParameterMap = TemporaryArray<int>.Empty; 148private int FirstUnspecifiedParameter(ref TemporaryArray<int> argumentToParameterMap) 150using var specified = TemporaryArray<bool>.Empty; 173private bool TryPrepareArgumentToParameterMap(IMethodSymbol method, ref TemporaryArray<int> argumentToParameterMap) 222void AddArgumentToParameterMapping(int argumentIndex, int parameterIndex, ref TemporaryArray<int> argumentToParameterMap)
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryNullableDirective\CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
103using var diagnostics = TemporaryArray<Diagnostic>.Empty;
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (2)
86using var fieldsArray = TemporaryArray<(IFieldSymbol field, VariableDeclaratorSyntax declarator, CodeStyleOption2<bool> option)>.Empty;
src\Analyzers\CSharp\CodeFixes\UseCollectionExpression\CSharpUseCollectionExpressionForFluentCodeFixProvider.cs (2)
108using var result = TemporaryArray<CollectionMatch<ExpressionSyntax>>.Empty;
StringIndentation\CSharpStringIndentationService.cs (4)
34using var result = TemporaryArray<StringIndentationRegion>.Empty; 79SourceText text, SyntaxToken token, ref TemporaryArray<StringIndentationRegion> result, CancellationToken cancellationToken) 94SourceText text, InterpolatedStringExpressionSyntax interpolatedString, ref TemporaryArray<StringIndentationRegion> result, CancellationToken cancellationToken)
Structure\Providers\BlockSyntaxStructureProvider.cs (4)
42using var subHeadings = TemporaryArray<(TextSpan textSpan, TextSpan hintSpan, string type)>.Empty; 72using var subHeadings = TemporaryArray<(TextSpan textSpan, TextSpan hintSpan, string type)>.Empty;
UseExpressionBodyForLambda\UseExpressionBodyForLambdaCodeRefactoringProvider.cs (2)
171using var result = TemporaryArray<CodeAction>.Empty;
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Extensions\SyntaxTriviaListExtensions.cs (4)
47using var result = TemporaryArray<ImmutableArray<SyntaxTrivia>>.Empty; 48using var currentLine = TemporaryArray<SyntaxTrivia>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Services\SemanticFacts\CSharpSemanticFacts.cs (5)
202using var builder = TemporaryArray<IMethodSymbol>.Empty; 214using var builder = TemporaryArray<IMethodSymbol>.Empty; 222private static void FlattenDeconstructionMethods(DeconstructionInfo deconstruction, ref TemporaryArray<IMethodSymbol> builder)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Utilities\SpeculationAnalyzer.cs (3)
902using var variables = TemporaryArray<ILocalSymbol>.Empty; 914void AddVariables(VariableDesignationSyntax designation, ref TemporaryArray<ILocalSymbol> variables)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\CodeGeneration\ConversionGenerator.cs (2)
109using var tokens = TemporaryArray<SyntaxToken>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\CSharp\LanguageServices\CSharpTypeInferenceService.TypeInferrer.cs (2)
1474using var result = TemporaryArray<TypeInferenceInfo>.Empty;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (9)
Utilities\PatternMatcherTests.cs (9)
435private static ImmutableArray<string> PartListToSubstrings(string identifier, in TemporaryArray<TextSpan> parts) 437using var result = TemporaryArray<string>.Empty; 446using var parts = TemporaryArray<TextSpan>.Empty; 453using var parts = TemporaryArray<TextSpan>.Empty; 481using var matches = TemporaryArray<PatternMatch>.Empty;
Microsoft.CodeAnalysis.Features (101)
Completion\Providers\AbstractAwaitCompletionProvider.cs (2)
98using var builder = TemporaryArray<KeyValuePair<string, string>>.Empty;
Completion\Providers\AbstractSymbolCompletionProvider.cs (2)
181using var symbolListBuilder = TemporaryArray<SymbolAndSelectionInfo>.Empty;
Completion\Providers\Scripting\AbstractLoadDirectiveCompletionProvider.cs (2)
23using var builder = TemporaryArray<char>.Empty;
ConvertNumericLiteral\AbstractConvertNumericLiteralCodeRefactoringProvider.cs (2)
72using var result = TemporaryArray<CodeAction>.Empty;
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
126using var scopes = TemporaryArray<CodeAction>.Empty;
Copilot\ICopilotChangeAnalysisService.cs (2)
315using var intersectingCollections = TemporaryArray<CodeFixCollection>.Empty;
EditAndContinue\AbstractEditAndContinueAnalyzer.cs (3)
185ref TemporaryArray<(ISymbol?, ISymbol?, EditKind)> result, 220var result = new TemporaryArray<(ISymbol?, ISymbol?, EditKind)>(); 3556protected static void AddMemberUpdate(ref TemporaryArray<(ISymbol?, ISymbol?, EditKind)> result, ISymbol? oldSymbol, ISymbol? newSymbol, ISymbol? newSemanticallyMatchingSymbol)
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (2)
21using var array = TemporaryArray<int>.Empty;
EmbeddedLanguages\EmbeddedLanguageInfo.cs (2)
33using var array = TemporaryArray<int>.Empty;
EncapsulateField\AbstractEncapsulateFieldService.cs (2)
69using var builder = TemporaryArray<CodeAction>.Empty;
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (4)
80using var converted = TemporaryArray<DocumentSpan>.Empty; 81using var convertedClassifiedSpans = TemporaryArray<ClassifiedSpansAndHighlightSpan?>.Empty;
FindUsages\DefinitionItemFactory.cs (4)
182using var metadataLocations = TemporaryArray<AssemblyLocation>.Empty; 233using var source = TemporaryArray<DocumentSpan>.Empty;
GenerateConstructors\AbstractGenerateConstructorsCodeRefactoringProvider.cs (2)
284using var result = TemporaryArray<CodeAction>.Empty;
Highlighting\Keywords\AbstractKeywordHighlighter.cs (5)
35protected virtual bool ContainsHighlightableToken(ref TemporaryArray<SyntaxToken> tokens) 42using var touchingTokens = TemporaryArray<SyntaxToken>.Empty; 83internal void AddTouchingTokens(SyntaxNode root, int position, ref TemporaryArray<SyntaxToken> tokens) 91SyntaxNode root, int position, ref TemporaryArray<SyntaxToken> tokens, bool findInsideTrivia)
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
116using var result = TemporaryArray<CodeAction>.Empty;
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (4)
154using var actionsBuilder = TemporaryArray<CodeAction>.Empty; 155using var actionsBuilderAllOccurrences = TemporaryArray<CodeAction>.Empty;
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (13)
99using var nameMatches = TemporaryArray<PatternMatch>.Empty; 100using var containerMatches = TemporaryArray<PatternMatch>.Empty; 131in TemporaryArray<PatternMatch> nameMatches, 132in TemporaryArray<PatternMatch> containerMatches, 142using var matchedSpans = TemporaryArray<TextSpan>.Empty; 146using var allPatternMatches = TemporaryArray<PatternMatch>.Empty; 172using var result = TemporaryArray<ProjectId>.Empty; 226private static NavigateToMatchKind GetNavigateToMatchKind(in TemporaryArray<PatternMatch> nameMatches)
NavigateTo\NavigateToSearcher.cs (4)
286using var result = TemporaryArray<ImmutableArray<Project>>.Empty; 299using var buffer = TemporaryArray<Project>.Empty;
QuickInfo\CommonQuickInfoProvider.cs (2)
50using var result = TemporaryArray<SyntaxToken>.Empty;
QuickInfo\IndentationHelper.cs (2)
40using var adjustedClassifiedSpans = TemporaryArray<ClassifiedSpan>.Empty;
QuickInfo\Presentation\QuickInfoContentBuilder.cs (9)
40using var remainingSections = TemporaryArray<QuickInfoSection>.Empty; 45var elements = TemporaryArray<QuickInfoElement>.Empty; 52using var firstLineElements = TemporaryArray<QuickInfoElement>.Empty; 131using var textRuns = TemporaryArray<QuickInfoClassifiedTextRun>.Empty; 215ref TemporaryArray<QuickInfoSection> remainingSections)
QuickInfo\Presentation\TaggedTextExtensions.cs (5)
109private TemporaryArray<QuickInfoElement> _paragraphs; 112private TemporaryArray<QuickInfoElement> _lines; 115private TemporaryArray<QuickInfoClassifiedTextRun> _runs; 175using var newElements = TemporaryArray<QuickInfoElement>.Empty;
src\Analyzers\Core\Analyzers\UseCollectionInitializer\AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (2)
104using var matchKinds = TemporaryArray<TSyntaxKind>.Empty;
src\Analyzers\Core\Analyzers\UseObjectInitializer\AbstractUseObjectInitializerDiagnosticAnalyzer.cs (4)
74using var matchKinds = TemporaryArray<TSyntaxKind>.Empty; 144using var locations = TemporaryArray<Location>.Empty;
src\Analyzers\Core\CodeFixes\AddExplicitCast\AbstractAddExplicitCastCodeFixProvider.cs (2)
90using var actions = TemporaryArray<CodeAction>.Empty;
src\Analyzers\Core\CodeFixes\AddParameter\AbstractAddParameterCodeFixProvider.cs (2)
295using var builder = TemporaryArray<CodeAction>.Empty;
src\Analyzers\Core\CodeFixes\AliasAmbiguousType\AbstractAliasAmbiguousTypeCodeFixProvider.cs (2)
111using var result = TemporaryArray<string>.Empty;
src\Analyzers\Core\CodeFixes\GenerateConstructor\AbstractGenerateConstructorService.cs (2)
91using var result = TemporaryArray<CodeAction>.Empty;
src\Analyzers\Core\CodeFixes\ImplementInterface\ImplementInterfaceGenerator_Property.cs (2)
51using var result = TemporaryArray<ISymbol>.Empty;
src\Analyzers\Core\CodeFixes\NamingStyle\NamingStyleCodeFixProvider.cs (2)
162using var operations = TemporaryArray<CodeActionOperation>.Empty;
SymbolSearch\Windows\SymbolSearchUpdateEngine.cs (4)
137using var results = TemporaryArray<TResult>.Empty; 262using var result = TemporaryArray<string>.Empty;
Wrapping\AbstractCodeActionComputer.cs (2)
278using var result = TemporaryArray<CodeAction>.Empty;
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Handler\Completion\CompletionResultFactory.cs (2)
208using var result = TemporaryArray<LSP.CompletionItemTag>.Empty;
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Host\RemoteWorkspace.InFlightSolution.cs (2)
181using var solutions = TemporaryArray<Task>.Empty;
Services\DiagnosticAnalyzer\RemoteDiagnosticAnalyzerService.cs (2)
90using var builder = TemporaryArray<DiagnosticData>.Empty;
Microsoft.CodeAnalysis.Workspaces (171)
Classification\ClassifierHelper.cs (2)
257using var tempBuffer = TemporaryArray<TClassifiedSpan>.Empty;
CodeActions\CodeAction.cs (2)
429using var result = TemporaryArray<CodeActionOperation>.Empty;
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (14)
85using var overlappingSpans = TemporaryArray<TextChange>.Empty; 86using var intersectingSpans = TemporaryArray<TextChange>.Empty; 97ref TemporaryArray<TextChange> overlappingSpans, 98ref TemporaryArray<TextChange> intersectingSpans) 126in TemporaryArray<TextChange> overlappingSpans, 127in TemporaryArray<TextChange> intersectingSpans) 153in TemporaryArray<TextChange> overlappingSpans, 154in TemporaryArray<TextChange> intersectingSpans) 200in TemporaryArray<TextChange> overlappingSpans, 201in TemporaryArray<TextChange> intersectingSpans) 211in TemporaryArray<TextChange> overlappingSpans) 231in TemporaryArray<TextChange> intersectingSpans)
Diagnostics\DiagnosticAnalysisResult.cs (2)
116using var result = TemporaryArray<DiagnosticData>.Empty;
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (8)
273using var aliasSymbols = TemporaryArray<IAliasSymbol>.Empty; 754using var additionalProperties = TemporaryArray<(string key, string value)>.Empty; 782using var additionalProperties = TemporaryArray<(string key, string value)>.Empty; 874using var result = TemporaryArray<string>.Empty;
FindSymbols\FindReferences\Finders\MethodTypeParameterSymbolReferenceFinder.cs (2)
63using var names = TemporaryArray<string>.Empty;
FindSymbols\SymbolTree\SymbolTreeInfo.cs (13)
171using var similarNames = TemporaryArray<string>.Empty; 172using var result = TemporaryArray<ISymbol>.Empty; 220using var results = TemporaryArray<ISymbol>.Empty; 398int index, INamespaceOrTypeSymbol rootContainer, ref TemporaryArray<ISymbol> results, CancellationToken cancellationToken) 415using var containerSymbols = TemporaryArray<ISymbol>.Empty; 504using var builder = TemporaryArray<INamedTypeSymbol>.Empty; 505using var tempBuilder = TemporaryArray<ISymbol>.Empty;
FindSymbols\SyntaxTree\SyntaxTreeIndex_Forwarders.cs (2)
63using var result = TemporaryArray<string>.Empty;
Options\GlobalOptionService.cs (2)
87using var values = TemporaryArray<object?>.Empty;
PatternMatching\AllLowerCamelCaseMatcher.cs (6)
39in TemporaryArray<TextSpan> candidateHumps, out ImmutableArray<TextSpan> matchedSpans) 66private static PatternMatchKind GetKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps) 70int patternIndex, int candidateHumpIndex, bool? contiguous, in TemporaryArray<TextSpan> candidateHumps) 150int patternIndex, int humpIndex, bool contiguous, in TemporaryArray<TextSpan> candidateHumps) 212CamelCaseResult result, ref CamelCaseResult? bestResult, TextSpan? matchSpanToAdd, in TemporaryArray<TextSpan> candidateHumps) 241private static bool IsBetter(CamelCaseResult result, CamelCaseResult? currentBestResult, in TemporaryArray<TextSpan> candidateHumps)
PatternMatching\CamelCaseResult.cs (1)
47private static PatternMatchKind GetCamelCaseKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps)
PatternMatching\ContainerPatternMatcher.cs (4)
44public override bool AddMatches(string? container, ref TemporaryArray<PatternMatch> matches) 55private bool AddMatches(string container, ref TemporaryArray<PatternMatch> matches, bool fuzzyMatch) 62using var tempContainerMatches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\PatternMatcher.cs (12)
107public abstract bool AddMatches(string? candidate, ref TemporaryArray<PatternMatch> matches); 167using var candidateHumps = TemporaryArray<TextSpan>.Empty; 341ref TemporaryArray<PatternMatch> matches, 398using var tempMatches = TemporaryArray<PatternMatch>.Empty; 458in TemporaryArray<TextSpan> candidateHumps) 505in TemporaryArray<TextSpan> candidateHumps, 515in TemporaryArray<TextSpan> candidateHumps, 520ref readonly var patternHumps = ref patternChunk.PatternHumps; 535using var matchSpans = TemporaryArray<TextSpan>.Empty;
PatternMatching\PatternMatcher.TextChunk.cs (2)
32public TemporaryArray<TextSpan> PatternHumps; 45PatternHumps = TemporaryArray<TextSpan>.Empty;
PatternMatching\PatternMatcherExtensions.cs (2)
15using var matches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\SimplePatternMatcher.cs (1)
44public override bool AddMatches(string candidate, ref TemporaryArray<PatternMatch> matches)
src\Dependencies\Collections\Extensions\ImmutableArrayExtensions.cs (1)
782internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items)
src\Dependencies\Collections\TemporaryArray`1.cs (11)
79/// This field is initialized to non-<see langword="null"/> the first time the <see cref="TemporaryArray{T}"/> 85private TemporaryArray(in TemporaryArray<T> array) 93public static TemporaryArray<T> GetInstance(int capacity) 105public static TemporaryArray<T> Empty => default; 201public void AddRange(in TemporaryArray<T> items) 329/// Transitions the current <see cref="TemporaryArray{T}"/> from inline storage to dynamic storage storage. An 448private readonly TemporaryArray<T> _array; 453public Enumerator(in TemporaryArray<T> array) 480public static int InlineCapacity => TemporaryArray<T>.InlineCapacity; 482public static bool HasDynamicStorage(in TemporaryArray<T> array) 485public static int InlineCount(in TemporaryArray<T> array)
src\Dependencies\Collections\TemporaryArrayExtensions.cs (13)
16/// Gets a mutable reference to a <see cref="TemporaryArray{T}"/> stored in a <c>using</c> variable. 19/// <para>This supporting method allows <see cref="TemporaryArray{T}"/>, a non-copyable <see langword="struct"/> 40public static ref TemporaryArray<T> AsRef<T>(this in TemporaryArray<T> array) 45public static bool Any<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) 56public static bool All<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) 70public static T? SingleOrDefault<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) 91public static T? SingleOrDefault<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 112public static T? FirstOrDefault<T>(this in TemporaryArray<T> array) 115public static T? FirstOrDefault<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 126public static int IndexOf<T, TArg>(this in TemporaryArray<T> array, Func<T, TArg, bool> predicate, TArg arg) 140public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value) 149public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IIntervalTree`1.cs (1)
40int start, int length, ref TemporaryArray<T> builder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\ImmutableIntervalTree`1.cs (1)
268int start, int length, ref TemporaryArray<T> builder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeAlgorithms`2.cs (5)
24using var result = TemporaryArray<T>.Empty; 51int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector) 58int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector) 65int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\IntervalTreeHelpers.cs (1)
45ref TemporaryArray<T> builder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\MutableIntervalTree`1.cs (1)
47int start, int length, ref TemporaryArray<T> builder,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Collections\SimpleMutableIntervalTree`2.cs (3)
48public void FillWithIntervalsThatOverlapWith(int start, int length, ref TemporaryArray<T> builder) 51public void FillWithIntervalsThatIntersectWith(int start, int length, ref TemporaryArray<T> builder) 54public void FillWithIntervalsThatContain(int start, int length, ref TemporaryArray<T> builder)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SymbolInfoExtensions.cs (2)
32using var result = TemporaryArray<ISymbol>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\Naming\IdentifierNameParts.cs (5)
29using var parts = TemporaryArray<TextSpan>.Empty; 73private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name) 75using var words = TemporaryArray<string>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\NamingStyles\NamingStyle.cs (2)
406using var parts = TemporaryArray<TextSpan>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\RefactoringHelpers\AbstractRefactoringHelpers.cs (7)
27private static void AddNode<TSyntaxNode>(bool allowEmptyNodes, ref TemporaryArray<TSyntaxNode> result, TSyntaxNode node) where TSyntaxNode : SyntaxNode 60SourceText sourceText, SyntaxNode root, TextSpan selectionRaw, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode 284ref TemporaryArray<TSyntaxNode> result, 323ref TemporaryArray<TSyntaxNode> result, 369ref TemporaryArray<TSyntaxNode> result, 538ref TemporaryArray<TSyntaxNode> result, 572IEnumerable<SyntaxNode> nodes, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Services\RefactoringHelpers\IRefactoringHelpers.cs (1)
55SourceText sourceText, SyntaxNode root, TextSpan selection, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\BKTree.cs (2)
65public void Find(ref TemporaryArray<string> result, string value, int? threshold = null) 89ref TemporaryArray<string> result,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\InterceptsLocationUtilities.cs (2)
33using var result = TemporaryArray<InterceptsLocationData>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\StringBreaker.cs (3)
16public static void AddWordParts(string identifier, ref TemporaryArray<TextSpan> parts) 19public static void AddCharacterParts(string identifier, ref TemporaryArray<TextSpan> parts) 22public static void AddParts(string text, bool word, ref TemporaryArray<TextSpan> parts)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Extensions\Symbols\SymbolEquivalenceComparer.cs (6)
81using var equivalenceVisitors = TemporaryArray<EquivalenceVisitor>.Empty; 82using var getHashCodeVisitors = TemporaryArray<GetHashCodeVisitor>.Empty; 219using var builder = TemporaryArray<INamedTypeSymbol>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\AbstractRefactoringHelpersService.cs (1)
24public void AddRelevantNodes<TSyntaxNode>(SourceText sourceText, SyntaxNode root, TextSpan selection, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\CodeRefactoringContextExtensions.cs (5)
70using var result = TemporaryArray<TSyntaxNode>.Empty; 95using var result = TemporaryArray<TSyntaxNode>.Empty; 102this ParsedDocument document, TextSpan span, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\CodeRefactorings\IRefactoringHelpersService.cs (1)
20this IRefactoringHelpersService service, ParsedDocument document, TextSpan selection, bool allowEmptyNodes, int maxCount, ref TemporaryArray<TSyntaxNode> result, CancellationToken cancellationToken) where TSyntaxNode : SyntaxNode
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (4)
122using var statements = TemporaryArray<SyntaxNode>.Empty; 368using var parts = TemporaryArray<TextSpan>.Empty;
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\LayeredServiceUtilities.cs (1)
31TemporaryArray<(Lazy<TServiceInterface, TMetadata>? lazyService, bool usesFactory)> servicesOfMatchingType = new();
Utilities\SpellChecker.cs (3)
26public void FindSimilarWords(ref TemporaryArray<string> similarWords, string value, bool substringsAreSimilar) 28using var result = TemporaryArray<string>.Empty;
Workspace\Solution\ProjectState.cs (1)
1123public void AddDocumentIdsWithFilePath(ref TemporaryArray<DocumentId> temporaryArray, string filePath)
Workspace\Solution\SolutionCompilationState.RegularCompilationTracker_Generators.cs (4)
182using var generatedDocumentsBuilder = TemporaryArray<SourceGeneratedDocumentState>.Empty; 293using var generatedDocumentsBuilder = TemporaryArray<SourceGeneratedDocumentState>.Empty;
Workspace\Solution\SolutionCompilationState_SourceGenerators.cs (2)
89using var generators = TemporaryArray<ISourceGenerator>.Empty;
Workspace\Solution\SolutionState.cs (6)
364var langaugeCountDeltas = new TemporaryArray<(string language, int count)>(); 482var languageCountDeltas = new TemporaryArray<(string language, int count)>(); 494private static void AddLanguageCountDelta(ref TemporaryArray<(string language, int count)> languageCountDeltas, string language, int amount) 509private static ImmutableDictionary<string, int> AddLanguageCounts(ImmutableDictionary<string, int> projectCountByLanguage, in TemporaryArray<(string language, int count)> languageCountDeltas) 1205using var result = TemporaryArray<DocumentId>.Empty;
Workspace\Solution\TextDocumentStates.cs (1)
330public void AddDocumentIdsWithFilePath(ref TemporaryArray<DocumentId> temporaryArray, string filePath)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
UtilityTest\BKTreeTests.cs (2)
18using var results = TemporaryArray<string>.Empty;