18 references to new
Microsoft.CodeAnalysis.Workspaces (18)
Classification\SyntaxClassification\AbstractSyntaxClassificationService.Worker.cs (2)
31
private static readonly ObjectPool<SegmentedList<ClassifiedSpan>> s_listPool =
new
(() => []);
32
private static readonly ObjectPool<Stack<SyntaxNodeOrToken>> s_stackPool =
new
(() => new(), trimOnFree: false);
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (2)
38
private static readonly ObjectPool<Stack<ChildSyntaxList.Enumerator>> s_enumeratorPool =
new
(() => new());
39
private static readonly ObjectPool<Stack<ChildSyntaxList.Reversed.Enumerator>> s_reversedEnumeratorPool =
new
(() => new());
Differencing\LongestCommonSubsequence.cs (1)
25
private static readonly ObjectPool<VBuffer> s_pool =
new
(() => new VBuffer());
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
36
private static readonly ObjectPool<Dictionary<ISymbol, SymbolGroup>> s_symbolToGroupPool =
new
(() => new(MetadataUnifyingEquivalenceComparer.Instance));
FindSymbols\FindReferences\MetadataUnifyingSymbolHashSet.cs (1)
12
private static readonly ObjectPool<MetadataUnifyingSymbolHashSet> s_metadataUnifyingSymbolHashSetPool =
new
(() => []);
FindSymbols\SymbolTree\SymbolTreeInfo_Source.cs (1)
19
private static readonly ObjectPool<MultiDictionary<string, INamespaceOrTypeSymbol>> s_symbolMapPool =
new
(() => []);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxNodeExtensions.cs (1)
852
private static readonly ObjectPool<Stack<TDirectiveTriviaSyntax>> s_stackPool =
new
(() => new());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
24
new
(() => new BasicBlockAnalysisData());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\FlowAnalysis\SymbolUsageAnalysis\SymbolUsageAnalysis.Walker.cs (1)
32
private static readonly ObjectPool<Walker> s_visitorPool =
new
(() => new Walker());
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
36
private static readonly ObjectPool<SegmentedList<TokenPairWithOperations>> s_tokenPairListPool =
new
(() => [], trimOnFree: false);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\NodeOperations.cs (4)
17
private static readonly ObjectPool<SegmentedList<IndentBlockOperation>> s_indentBlockOperationPool =
new
(() => []);
18
private static readonly ObjectPool<SegmentedList<SuppressOperation>> s_suppressOperationPool =
new
(() => []);
19
private static readonly ObjectPool<SegmentedList<AlignTokensOperation>> s_alignTokensOperationPool =
new
(() => []);
20
private static readonly ObjectPool<SegmentedList<AnchorIndentationOperation>> s_anchorIndentationOperationPool =
new
(() => []);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectReader.ReaderReferenceMap.cs (1)
21
=
new
(() => new SegmentedList<string>(20));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Serialization\ObjectWriter.WriterReferenceMap.cs (1)
22
private static readonly ObjectPool<SegmentedDictionary<string, int>> s_valueDictionaryPool =
new
(() => new(128));