1 instantiation of AnalyzerDiagnosticReporter
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
25
new ObjectPool<AnalyzerDiagnosticReporter>(() => new
AnalyzerDiagnosticReporter
(), 10);
21 references to AnalyzerDiagnosticReporter
Microsoft.CodeAnalysis (21)
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (5)
24
private static readonly ObjectPool<
AnalyzerDiagnosticReporter
> s_objectPool =
25
new ObjectPool<
AnalyzerDiagnosticReporter
>(() => new AnalyzerDiagnosticReporter(), 10);
27
public static
AnalyzerDiagnosticReporter
GetInstance(
40
var
item = s_objectPool.Allocate();
86
/// NOTE: <see cref="
AnalyzerDiagnosticReporter
"/> is a pooled type that is always used from a single
DiagnosticAnalyzer\AnalyzerExecutor.cs (16)
639
var
diagReporter = GetAddSemanticDiagnostic(semanticModel.SyntaxTree, analyzer, analyzerOptions, cancellationToken);
693
var
diagReporter = GetAddSyntaxDiagnostic(file, analyzer, analyzerOptions, cancellationToken);
739
var
diagReporter = GetAddSyntaxDiagnostic(file, analyzer, analyzerOptions, cancellationToken);
1025
Action<
AnalyzerDiagnosticReporter
, Func<Diagnostic, CancellationToken, bool>, ExecutionData, TArgs, CancellationToken> executeActions,
1026
Action<HashSet<TBlockAction>,
AnalyzerDiagnosticReporter
, Func<Diagnostic, CancellationToken, bool>, ExecutionData, TArgs, CancellationToken> executeBlockActions,
1055
var
diagReporter = GetAddSemanticDiagnostic(
1122
var
diagReporter = GetAddSemanticDiagnostic(
1143
AnalyzerDiagnosticReporter
diagReporter,
1223
var
diagReporter = GetAddSemanticDiagnostic(
1243
AnalyzerDiagnosticReporter
diagReporter,
1591
private
AnalyzerDiagnosticReporter
GetAddSemanticDiagnostic(
1597
return
AnalyzerDiagnosticReporter
.GetInstance(
1603
private
AnalyzerDiagnosticReporter
GetAddSemanticDiagnostic(
1610
return
AnalyzerDiagnosticReporter
.GetInstance(
1616
private
AnalyzerDiagnosticReporter
GetAddSyntaxDiagnostic(
1622
return
AnalyzerDiagnosticReporter
.GetInstance(