46 references to new
IdeCoreBenchmarks (1)
CloudCachePersistentStorage.cs (1)
27
private static readonly ObjectPool<byte[]> s_byteArrayPool =
new
(() => new byte[Checksum.HashSize]);
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Simplification\Reducers\CSharpCastReducer.cs (1)
19
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpDefaultExpressionReducer.cs (1)
13
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpEscapingReducer.cs (1)
21
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpExtensionMethodReducer.cs (1)
21
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpInferredMemberNameReducer.cs (1)
18
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpMiscellaneousReducer.cs (1)
24
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpNameReducer.cs (1)
21
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpNullableAnnotationReducer.cs (1)
19
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpParenthesizedExpressionReducer.cs (1)
19
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpParenthesizedPatternReducer.cs (1)
21
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Simplification\Reducers\CSharpVarReducer.cs (1)
13
private static readonly ObjectPool<IReductionRewriter> s_pool =
new
(
Microsoft.CodeAnalysis.EditorFeatures (2)
IntelliSense\AsyncCompletion\ItemManager.CompletionListUpdater.cs (1)
68
private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool =
new
(factory: () => new());
KeywordHighlighting\HighlighterViewTaggerProvider.cs (1)
40
private static readonly PooledObjects.ObjectPool<List<TextSpan>> s_listPool =
new
(() => new List<TextSpan>());
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\Classification\FSharpClassificationService.cs (1)
24
private readonly ObjectPool<List<ClassifiedSpan>> s_listPool =
new
(() => new());
Microsoft.CodeAnalysis.Features (10)
AbstractUseAutoPropertyAnalyzer.cs (5)
36
private static readonly ObjectPool<ConcurrentStack<AnalysisResult>> s_analysisResultPool =
new
(() => new());
37
private static readonly ObjectPool<ConcurrentSet<IFieldSymbol>> s_fieldSetPool =
new
(() => new());
38
private static readonly ObjectPool<ConcurrentSet<SyntaxNode>> s_nodeSetPool =
new
(() => new());
39
private static readonly ObjectPool<ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>>> s_fieldWriteLocationPool =
new
(() => new());
55
_fieldNamesPool =
new
(() => new(this.SyntaxFacts.StringComparer));
Completion\CompletionService.cs (1)
239
private static readonly ObjectPool<List<MatchResult>> s_listOfMatchResultPool =
new
(factory: () => new());
EmbeddedLanguages\Json\LanguageServices\JsonClassifier.cs (1)
30
private static readonly ObjectPool<Visitor> s_visitorPool =
new
(() => new Visitor());
Highlighting\HighlightingService.cs (1)
22
private static readonly PooledObjects.ObjectPool<List<TextSpan>> s_listPool =
new
(() => new List<TextSpan>());
Highlighting\Keywords\AbstractKeywordHighlighter.cs (2)
26
private static readonly ObjectPool<List<TextSpan>> s_textSpanListPool =
new
(() => new List<TextSpan>());
27
private static readonly ObjectPool<List<SyntaxToken>> s_tokenListPool =
new
(() => new List<SyntaxToken>());
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
CloudCachePersistentStorage.cs (1)
27
private static readonly ObjectPool<byte[]> s_byteArrayPool =
new
(() => new byte[Checksum.HashSize]);
Microsoft.CodeAnalysis.VisualBasic.Workspaces (9)
Simplification\Reducers\VisualBasicCallReducer.vb (1)
16
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Simplification\Reducers\VisualBasicCastReducer.vb (1)
16
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Simplification\Reducers\VisualBasicEscapingReducer.vb (1)
16
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Simplification\Reducers\VisualBasicExtensionMethodReducer.vb (1)
15
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Simplification\Reducers\VisualBasicInferredMemberNameReducer.vb (1)
17
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Simplification\Reducers\VisualBasicMiscellaneousReducer.vb (1)
16
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Simplification\Reducers\VisualBasicNameReducer.vb (1)
20
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Simplification\Reducers\VisualBasicParenthesesReducer.vb (1)
11
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Simplification\Reducers\VisualBasicVariableDeclaratorReducer.vb (1)
19
New
ObjectPool
(Of IReductionRewriter)(Function() New Rewriter(s_pool))
Microsoft.CodeAnalysis.Workspaces (9)
Classification\SyntaxClassification\SyntacticChangeRangeComputer.cs (1)
39
private static readonly ObjectPool<Stack<SyntaxNodeOrToken>> s_pool =
new
(() => new());
Differencing\LongestCommonSubsequence.cs (1)
18
private static readonly ObjectPool<VBuffer> s_pool =
new
(() => new VBuffer());
FindSymbols\FindReferences\FindReferencesSearchEngine.cs (1)
23
private static readonly ObjectPool<MetadataUnifyingSymbolHashSet> s_metadataUnifyingSymbolHashSetPool =
new
(() => new());
ObjectReader.cs (1)
322
=
new
(() => new SegmentedList<T>(20));
ObjectWriter.cs (2)
393
new
(() => new SegmentedDictionary<object, int>(128, ReferenceEqualityComparer.Instance));
396
new
(() => new SegmentedDictionary<object, int>(128));
Serialization\SolutionReplicationContext.cs (1)
13
private static readonly ObjectPool<ConcurrentSet<IDisposable>> s_pool =
new
(() => new());
SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
24
new
(() => new BasicBlockAnalysisData());
SymbolUsageAnalysis.Walker.cs (1)
32
private static readonly ObjectPool<Walker> s_visitorPool =
new
(() => new Walker());
Microsoft.VisualStudio.LanguageServices (2)
InheritanceMargin\InheritanceMarginHelpers.cs (1)
21
private static readonly ObjectPool<MultiDictionary<string, InheritanceTargetItem>> s_pool =
new
(() => new());
Storage\CloudCachePersistentStorage.cs (1)
27
private static readonly ObjectPool<byte[]> s_byteArrayPool =
new
(() => new byte[Checksum.HashSize]);