1 instantiation of AnalyzerDiagnosticReporter
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
25
new ObjectPool<AnalyzerDiagnosticReporter>(() => new
AnalyzerDiagnosticReporter
(), 10);
19 references to AnalyzerDiagnosticReporter
Microsoft.CodeAnalysis (19)
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(
39
var
item = s_objectPool.Allocate();
82
/// NOTE: <see cref="
AnalyzerDiagnosticReporter
"/> is a pooled type that is always used from a single
DiagnosticAnalyzer\AnalyzerExecutor.cs (14)
525
var
diagReporter = GetAddSemanticDiagnostic(semanticModel.SyntaxTree, analyzer, cancellationToken);
574
var
diagReporter = GetAddSyntaxDiagnostic(file, analyzer, cancellationToken);
614
var
diagReporter = GetAddSyntaxDiagnostic(file, analyzer, cancellationToken);
791
var
diagReporter = GetAddSemanticDiagnostic(semanticModel.SyntaxTree, declaredNode.FullSpan, analyzer, cancellationToken);
973
var
diagReporter = GetAddSemanticDiagnostic(model.SyntaxTree, spanForContainingTopmostNodeForAnalysis, analyzer, cancellationToken);
987
AnalyzerDiagnosticReporter
diagReporter,
1074
var
diagReporter = GetAddSemanticDiagnostic(model.SyntaxTree, spanForContainingOperationBlock, analyzer, cancellationToken);
1087
AnalyzerDiagnosticReporter
diagReporter,
1444
private
AnalyzerDiagnosticReporter
GetAddSemanticDiagnostic(SyntaxTree tree, DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)
1446
return
AnalyzerDiagnosticReporter
.GetInstance(new SourceOrAdditionalFile(tree), span: null, Compilation, analyzer, isSyntaxDiagnostic: false,
1451
private
AnalyzerDiagnosticReporter
GetAddSemanticDiagnostic(SyntaxTree tree, TextSpan? span, DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)
1453
return
AnalyzerDiagnosticReporter
.GetInstance(new SourceOrAdditionalFile(tree), span, Compilation, analyzer, isSyntaxDiagnostic: false,
1458
private
AnalyzerDiagnosticReporter
GetAddSyntaxDiagnostic(SourceOrAdditionalFile file, DiagnosticAnalyzer analyzer, CancellationToken cancellationToken)
1460
return
AnalyzerDiagnosticReporter
.GetInstance(file, span: null, Compilation, analyzer, isSyntaxDiagnostic: true,