10 references to new
Microsoft.CodeAnalysis.CodeStyle (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));
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));
SymbolUsageAnalysis.BasicBlockAnalysisData.cs (1)
24
new
(() => new BasicBlockAnalysisData());
SymbolUsageAnalysis.Walker.cs (1)
32
private static readonly ObjectPool<Walker> s_visitorPool =
new
(() => new Walker());