10 references to new
Microsoft.CodeAnalysis.CodeStyle (10)
AbstractUseAutoPropertyAnalyzer.cs (5)
36private static readonly ObjectPool<ConcurrentStack<AnalysisResult>> s_analysisResultPool = new(() => new()); 37private static readonly ObjectPool<ConcurrentSet<IFieldSymbol>> s_fieldSetPool = new(() => new()); 38private static readonly ObjectPool<ConcurrentSet<SyntaxNode>> s_nodeSetPool = new(() => new()); 39private static readonly ObjectPool<ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>>> s_fieldWriteLocationPool = new(() => new()); 55_fieldNamesPool = new(() => new(this.SyntaxFacts.StringComparer));
ObjectReader.cs (1)
322= new(() => new SegmentedList<T>(20));
ObjectWriter.cs (2)
393new(() => new SegmentedDictionary<object, int>(128, ReferenceEqualityComparer.Instance)); 396new(() => new SegmentedDictionary<object, int>(128));
SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
24new(() => new BasicBlockAnalysisData());
SymbolUsageAnalysis.Walker.cs (1)
32private static readonly ObjectPool<Walker> s_visitorPool = new(() => new Walker());