2 instantiations of TemporaryArray
Microsoft.CodeAnalysis.Workspaces (2)
TemporaryArray`1.cs (1)
328_array = new TemporaryArray<T>(in array);
Workspace\Solution\SolutionState.CompilationTracker.cs (1)
792using var generatedDocumentsBuilder = new TemporaryArray<SourceGeneratedDocumentState>();
285 references to TemporaryArray
Microsoft.CodeAnalysis.CSharp.EditorFeatures (4)
StringCopyPaste\StringInfo.cs (2)
213using var result = TemporaryArray<TextSpan>.Empty;
StringCopyPaste\UnknownSourcePasteProcessor.cs (2)
96using var textChanges = TemporaryArray<TextChange>.Empty;
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Structure\CommentStructureTests.cs (2)
29using var result = TemporaryArray<BlockSpan>.Empty;
Microsoft.CodeAnalysis.CSharp.Features (52)
Completion\CompletionProviders\DeclarationName\DeclarationNameRecommender.NameGenerator.cs (12)
25using var parts = TemporaryArray<TextSpan>.Empty; 42using var breaks = TemporaryArray<TextSpan>.Empty; 49in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 51using var result = TemporaryArray<Words>.Empty; 67private static Words GetLongestBackwardSubsequence(int length, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 74private static Words GetLongestForwardSubsequence(int length, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 77private static Words GetWords(int start, int end, in TemporaryArray<TextSpan> breaks, string baseName, bool pluralize) 79using var result = TemporaryArray<string>.Empty;
CSharpRemoveUnnecessaryNullableDirectiveDiagnosticAnalyzer.cs (2)
104using var diagnostics = TemporaryArray<Diagnostic>.Empty;
ImplementInterface\AbstractChangeImplementationCodeRefactoringProvider.cs (2)
102using var nestedActions = TemporaryArray<CodeAction>.Empty;
Structure\CSharpStructureHelpers.cs (3)
188SyntaxTriviaList triviaList, ref TemporaryArray<BlockSpan> spans) 195void completeSingleLineCommentGroup(ref TemporaryArray<BlockSpan> spans) 234ref TemporaryArray<BlockSpan> spans,
Structure\Providers\AccessorDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\AnonymousMethodExpressionStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\ArrowExpressionClauseStructureProvider.cs (1)
21ref TemporaryArray<BlockSpan> spans,
Structure\Providers\BlockSyntaxStructureProvider.cs (1)
22ref TemporaryArray<BlockSpan> spans,
Structure\Providers\CompilationUnitStructureProvider.cs (1)
20ref TemporaryArray<BlockSpan> spans,
Structure\Providers\ConstructorDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\ConversionOperatorDeclarationStructureProvider.cs (1)
19ref TemporaryArray<BlockSpan> spans,
Structure\Providers\DelegateDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\DestructorDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\DisabledTextTriviaStructureProvider.cs (2)
17ref TemporaryArray<BlockSpan> spans, 27ref TemporaryArray<BlockSpan> spans, CancellationToken cancellationToken)
Structure\Providers\DocumentationCommentStructureProvider.cs (1)
19ref TemporaryArray<BlockSpan> spans,
Structure\Providers\EnumDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\EnumMemberDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\EventDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\EventFieldDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\FieldDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\FileScopedNamespaceDeclarationStructureProvider.cs (1)
19ref TemporaryArray<BlockSpan> spans,
Structure\Providers\IfDirectiveTriviaStructureProvider.cs (1)
22ref TemporaryArray<BlockSpan> spans,
Structure\Providers\IndexerDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\InitializerExpressionStructureProvider.cs (1)
20ref TemporaryArray<BlockSpan> spans,
Structure\Providers\InterpolatedStringExpressionStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\MethodDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\MultilineCommentBlockStructureProvider.cs (1)
16ref TemporaryArray<BlockSpan> spans,
Structure\Providers\NamespaceDeclarationStructureProvider.cs (1)
18ref TemporaryArray<BlockSpan> spans,
Structure\Providers\OperatorDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\ParenthesizedLambdaExpressionStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\PropertyDeclarationStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\RegionDirectiveStructureProvider.cs (1)
35ref TemporaryArray<BlockSpan> spans,
Structure\Providers\SimpleLambdaExpressionStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\StringLiteralExpressionStructureProvider.cs (1)
17ref TemporaryArray<BlockSpan> spans,
Structure\Providers\SwitchStatementStructureProvider.cs (1)
18ref TemporaryArray<BlockSpan> spans,
Structure\Providers\TypeDeclarationStructureProvider.cs (1)
20ref TemporaryArray<BlockSpan> spans,
Microsoft.CodeAnalysis.CSharp.Workspaces (13)
CSharpSemanticFacts.cs (5)
203using var builder = TemporaryArray<IMethodSymbol>.Empty; 215using var builder = TemporaryArray<IMethodSymbol>.Empty; 223private static void FlattenDeconstructionMethods(DeconstructionInfo deconstruction, ref TemporaryArray<IMethodSymbol> builder)
CSharpTypeInferenceService.TypeInferrer.cs (2)
1500using var result = TemporaryArray<TypeInferenceInfo>.Empty;
OperatorGenerator.cs (2)
108using var tokens = TemporaryArray<SyntaxToken>.Empty;
SyntaxTriviaListExtensions.cs (4)
43using var result = TemporaryArray<ImmutableArray<SyntaxTrivia>>.Empty; 44using var currentLine = TemporaryArray<SyntaxTrivia>.Empty;
Microsoft.CodeAnalysis.EditorFeatures (2)
EditorConfigSettings\DataProvider\CombinedOptionsProviderFactory.cs (2)
21var providers = TemporaryArray<ISettingsProvider<T>>.Empty;
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Structure\AbstractSyntaxNodeStructureProviderTests.cs (2)
44using var actualRegions = TemporaryArray<BlockSpan>.Empty;
Structure\AbstractSyntaxTriviaStructureProviderTests.cs (2)
25using var actualRegions = TemporaryArray<BlockSpan>.Empty;
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (9)
Utilities\PatternMatcherTests.cs (9)
417private static ImmutableArray<string> PartListToSubstrings(string identifier, in TemporaryArray<TextSpan> parts) 419using var result = TemporaryArray<string>.Empty; 428using var parts = TemporaryArray<TextSpan>.Empty; 435using var parts = TemporaryArray<TextSpan>.Empty; 463using var matches = TemporaryArray<PatternMatch>.Empty;
Microsoft.CodeAnalysis.Features (59)
AbstractAddExplicitCastCodeFixProvider.cs (2)
82using var actions = TemporaryArray<CodeAction>.Empty;
AbstractAliasAmbiguousTypeCodeFixProvider.cs (2)
112using var result = TemporaryArray<string>.Empty;
AbstractUseCollectionInitializerDiagnosticAnalyzer.cs (2)
75using var matchKinds = TemporaryArray<TSyntaxKind>.Empty;
AbstractUseObjectInitializerDiagnosticAnalyzer.cs (2)
66using var matchKinds = TemporaryArray<TSyntaxKind>.Empty;
ConvertTupleToStruct\AbstractConvertTupleToStructCodeRefactoringProvider.cs (2)
128using var scopes = TemporaryArray<CodeAction>.Empty;
EmbeddedLanguages\Classification\AbstractFallbackEmbeddedLanguageClassifier.cs (2)
20using var array = TemporaryArray<int>.Empty;
EmbeddedLanguages\EmbeddedLanguageInfo.cs (2)
30using var array = TemporaryArray<int>.Empty;
FindUsages\DefinitionItem.DetachedDefinitionItem.cs (2)
90using var converted = TemporaryArray<DocumentSpan>.Empty;
FindUsages\IDefinitionsAndReferencesFactory.cs (2)
174using var sourceLocations = TemporaryArray<DocumentSpan>.Empty;
InitializeParameter\AbstractAddParameterCheckCodeRefactoringProvider.cs (2)
100using var result = TemporaryArray<CodeAction>.Empty;
IntroduceParameter\AbstractIntroduceParameterCodeRefactoringProvider.cs (4)
146using var actionsBuilder = TemporaryArray<CodeAction>.Empty; 147using var actionsBuilderAllOccurrences = TemporaryArray<CodeAction>.Empty;
NavigateTo\AbstractNavigateToSearchService.InProcess.cs (11)
141using var nameMatches = TemporaryArray<PatternMatch>.Empty; 142using var containerMatches = TemporaryArray<PatternMatch>.Empty; 170in TemporaryArray<PatternMatch> nameMatches, 171in TemporaryArray<PatternMatch> containerMatches, 181using var matchedSpans = TemporaryArray<TextSpan>.Empty; 185using var allPatternMatches = TemporaryArray<PatternMatch>.Empty; 267private static NavigateToMatchKind GetNavigateToMatchKind(in TemporaryArray<PatternMatch> nameMatches)
NavigateTo\NavigateToSearcher.cs (4)
227using var result = TemporaryArray<ImmutableArray<Project>>.Empty; 240using var buffer = TemporaryArray<Project>.Empty;
QuickInfo\CommonQuickInfoProvider.cs (2)
49using var result = TemporaryArray<SyntaxToken>.Empty;
Shared\Naming\IdentifierNameParts.cs (5)
32using var parts = TemporaryArray<TextSpan>.Empty; 76private static ImmutableArray<string> CreateWords(in TemporaryArray<TextSpan> parts, string name) 78using var words = TemporaryArray<string>.Empty;
Structure\Syntax\AbstractBlockStructureProvider.cs (2)
38using var spans = TemporaryArray<BlockSpan>.Empty;
Structure\Syntax\AbstractSyntaxNodeStructureProvider.cs (3)
16ref TemporaryArray<BlockSpan> spans, 26ref TemporaryArray<BlockSpan> spans, 39ref TemporaryArray<BlockSpan> spans,
Structure\Syntax\AbstractSyntaxStructureProvider.cs (2)
15ref TemporaryArray<BlockSpan> spans, 21ref TemporaryArray<BlockSpan> spans,
Structure\Syntax\AbstractSyntaxTriviaStructureProvider.cs (1)
16ref TemporaryArray<BlockSpan> spans,
Structure\Syntax\BlockSpanCollector.cs (5)
36ref TemporaryArray<BlockSpan> spans, 43private void Collect(SyntaxNode root, ref TemporaryArray<BlockSpan> spans) 62private void GetBlockSpans(SyntaxToken previousToken, SyntaxNode node, ref TemporaryArray<BlockSpan> spans) 75private void GetBlockSpans(SyntaxToken token, ref TemporaryArray<BlockSpan> spans) 81private void GetOutliningSpans(SyntaxTriviaList triviaList, ref TemporaryArray<BlockSpan> spans)
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Host\RemoteWorkspace.InFlightSolution.cs (2)
182using var solutions = TemporaryArray<Task>.Empty;
Microsoft.CodeAnalysis.VisualBasic.Features (36)
Structure\Providers\AccessorDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\CollectionInitializerStructureProvider.vb (1)
18ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\CompilationUnitStructureProvider.vb (1)
17ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\ConstructorDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\DelegateDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\DisabledTextTriviaStructureProvider.vb (1)
15ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\DocumentationCommentStructureProvider.vb (1)
18ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\DoLoopBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\EnumDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\EnumMemberDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\EventDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\ExternalMethodDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\FieldDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\ForBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\ForEachBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\InterpolatedStringExpressionStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\MethodDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\MultiLineIfBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\MultilineLambdaStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\NamespaceDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\ObjectCreationInitializerStructureProvider.vb (1)
18ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\OperatorDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\PropertyDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\RegionDirectiveStructureProvider.vb (1)
27ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\SelectBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\StringLiteralExpressionStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\SyncLockBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\TryBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\TypeDeclarationStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\UsingBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\WhileBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\WithBlockStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\Providers\XmlExpressionStructureProvider.vb (1)
16ByRef spans As TemporaryArray(Of BlockSpan),
Structure\VisualBasicStructureHelpers.vb (3)
40Dim spans = TemporaryArray(Of BlockSpan).Empty 50ByRef spans As TemporaryArray(Of BlockSpan)) 80ByRef spans As TemporaryArray(Of BlockSpan),
Microsoft.CodeAnalysis.Workspaces (102)
Classification\ClassifierHelper.cs (2)
210using var tempBuffer = TemporaryArray<ClassifiedSpan>.Empty;
CodeActions\CodeAction.cs (2)
273using var result = TemporaryArray<CodeActionOperation>.Empty;
CodeFixes\FixAllOccurrences\TextChangeMerger.cs (14)
84using var overlappingSpans = TemporaryArray<TextChange>.Empty; 85using var intersectingSpans = TemporaryArray<TextChange>.Empty; 96ref TemporaryArray<TextChange> overlappingSpans, 97ref TemporaryArray<TextChange> intersectingSpans) 125in TemporaryArray<TextChange> overlappingSpans, 126in TemporaryArray<TextChange> intersectingSpans) 152in TemporaryArray<TextChange> overlappingSpans, 153in TemporaryArray<TextChange> intersectingSpans) 199in TemporaryArray<TextChange> overlappingSpans, 200in TemporaryArray<TextChange> intersectingSpans) 210in TemporaryArray<TextChange> overlappingSpans) 230in TemporaryArray<TextChange> intersectingSpans)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (4)
276using var aliasSymbols = TemporaryArray<IAliasSymbol>.Empty; 900using var result = TemporaryArray<string>.Empty;
FindSymbols\SymbolTree\SymbolTreeInfo.cs (9)
194using var results = TemporaryArray<ISymbol>.Empty; 372int index, INamespaceOrTypeSymbol rootContainer, ref TemporaryArray<ISymbol> results, CancellationToken cancellationToken) 389using var containerSymbols = TemporaryArray<ISymbol>.Empty; 479using var builder = TemporaryArray<INamedTypeSymbol>.Empty; 480using var tempBuilder = TemporaryArray<ISymbol>.Empty;
FindSymbols\SyntaxTree\SyntaxTreeIndex_Forwarders.cs (2)
49using var result = TemporaryArray<string>.Empty;
IntervalTree`1.cs (9)
110public void FillWithIntervalsThatOverlapWith<TIntrospector>(int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector) 114public void FillWithIntervalsThatIntersectWith<TIntrospector>(int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector) 118public void FillWithIntervalsThatContain<TIntrospector>(int start, int length, ref TemporaryArray<T> builder, in TIntrospector introspector) 141using var result = TemporaryArray<T>.Empty; 150using var result = TemporaryArray<T>.Empty; 158ref TemporaryArray<T> builder, in TIntrospector introspector, 182ref TemporaryArray<T> builder, in TIntrospector introspector,
J\s\src\Compilers\Core\Portable\Collections\ImmutableArrayExtensions.cs\ImmutableArrayExtensions.cs (1)
758internal static ImmutableArray<T> AddRange<T>(this ImmutableArray<T> self, in TemporaryArray<T> items)
NamingStyle.cs (2)
405using var parts = TemporaryArray<TextSpan>.Empty;
Options\GlobalOptionService.cs (2)
131using var values = TemporaryArray<object?>.Empty;
PatternMatching\AllLowerCamelCaseMatcher.cs (6)
49in TemporaryArray<TextSpan> candidateHumps, out ImmutableArray<TextSpan> matchedSpans) 76private static PatternMatchKind GetKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps) 80int patternIndex, int candidateHumpIndex, bool? contiguous, in TemporaryArray<TextSpan> candidateHumps) 160int patternIndex, int humpIndex, bool contiguous, in TemporaryArray<TextSpan> candidateHumps) 222CamelCaseResult result, ref CamelCaseResult? bestResult, TextSpan? matchSpanToAdd, in TemporaryArray<TextSpan> candidateHumps) 251private static bool IsBetter(CamelCaseResult result, CamelCaseResult? currentBestResult, in TemporaryArray<TextSpan> candidateHumps)
PatternMatching\CamelCaseResult.cs (1)
46private static PatternMatchKind GetCamelCaseKind(CamelCaseResult result, in TemporaryArray<TextSpan> candidateHumps)
PatternMatching\ContainerPatternMatcher.cs (4)
47public override bool AddMatches(string container, ref TemporaryArray<PatternMatch> matches) 58private bool AddMatches(string container, ref TemporaryArray<PatternMatch> matches, bool fuzzyMatch) 65using var tempContainerMatches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\PatternMatcher.cs (10)
103public abstract bool AddMatches(string? candidate, ref TemporaryArray<PatternMatch> matches); 176using var candidateHumps = TemporaryArray<TextSpan>.Empty; 306ref TemporaryArray<PatternMatch> matches, 363using var tempMatches = TemporaryArray<PatternMatch>.Empty; 423in TemporaryArray<TextSpan> candidateHumps) 467in TemporaryArray<TextSpan> candidateHumps, 477in TemporaryArray<TextSpan> candidateHumps, 482ref readonly var patternHumps = ref patternChunk.PatternHumps;
PatternMatching\PatternMatcher.TextChunk.cs (2)
33public TemporaryArray<TextSpan> PatternHumps; 42PatternHumps = TemporaryArray<TextSpan>.Empty;
PatternMatching\PatternMatcherExtensions.cs (2)
14using var matches = TemporaryArray<PatternMatch>.Empty;
PatternMatching\SimplePatternMatcher.cs (1)
44public override bool AddMatches(string candidate, ref TemporaryArray<PatternMatch> matches)
Shared\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (2)
364using var parts = TemporaryArray<TextSpan>.Empty;
SimpleIntervalTree`2.cs (3)
55public void FillWithIntervalsThatOverlapWith(int start, int length, ref TemporaryArray<T> builder) 58public void FillWithIntervalsThatIntersectWith(int start, int length, ref TemporaryArray<T> builder) 61public void FillWithIntervalsThatContain(int start, int length, ref TemporaryArray<T> builder)
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)
TemporaryArray`1.cs (10)
75/// This field is initialized to non-<see langword="null"/> the first time the <see cref="TemporaryArray{T}"/> 81private TemporaryArray(in TemporaryArray<T> array) 89public static TemporaryArray<T> Empty => default; 185public void AddRange(in TemporaryArray<T> items) 254/// Transitions the current <see cref="TemporaryArray{T}"/> from inline storage to dynamic storage storage. An 320private readonly TemporaryArray<T> _array; 325public Enumerator(in TemporaryArray<T> array) 352public static int InlineCapacity => TemporaryArray<T>.InlineCapacity; 354public static bool HasDynamicStorage(in TemporaryArray<T> array) 357public static int InlineCount(in TemporaryArray<T> array)
TemporaryArrayExtensions.cs (8)
13/// Gets a mutable reference to a <see cref="TemporaryArray{T}"/> stored in a <c>using</c> variable. 16/// <para>This supporting method allows <see cref="TemporaryArray{T}"/>, a non-copyable <see langword="struct"/> 37public static ref TemporaryArray<T> AsRef<T>(this in TemporaryArray<T> array) 40public static bool Any<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) 51public static bool All<T>(this in TemporaryArray<T> array, Func<T, bool> predicate) 62public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value) 71public static void AddIfNotNull<T>(this ref TemporaryArray<T> array, T? value)
Workspace\Solution\SolutionState.CompilationTracker.cs (3)
792using var generatedDocumentsBuilder = new TemporaryArray<SourceGeneratedDocumentState>(); 1212using var tempChecksumArray = TemporaryArray<Checksum>.Empty;