1 instantiation of AnalyzerDiagnosticReporter
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (1)
25
new ObjectPool<AnalyzerDiagnosticReporter>(() => new
AnalyzerDiagnosticReporter
(), 10);
16 references to AnalyzerDiagnosticReporter
Microsoft.CodeAnalysis (16)
DiagnosticAnalyzer\AnalyzerExecutor.AnalyzerDiagnosticReporter.cs (4)
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();
DiagnosticAnalyzer\AnalyzerExecutor.cs (12)
565
var
diagReporter = GetAddSemanticDiagnostic(semanticModel.SyntaxTree, analyzer);
609
var
diagReporter = GetAddSyntaxDiagnostic(file, analyzer);
644
var
diagReporter = GetAddSyntaxDiagnostic(file, analyzer);
808
var
diagReporter = GetAddSemanticDiagnostic(semanticModel.SyntaxTree, declaredNode.FullSpan, analyzer);
980
var
diagReporter = GetAddSemanticDiagnostic(model.SyntaxTree, filterSpan, analyzer);
1068
var
diagReporter = GetAddSemanticDiagnostic(model.SyntaxTree, filterSpan, analyzer);
1404
private
AnalyzerDiagnosticReporter
GetAddSemanticDiagnostic(SyntaxTree tree, DiagnosticAnalyzer analyzer)
1406
return
AnalyzerDiagnosticReporter
.GetInstance(new SourceOrAdditionalFile(tree), span: null, Compilation, analyzer, isSyntaxDiagnostic: false,
1411
private
AnalyzerDiagnosticReporter
GetAddSemanticDiagnostic(SyntaxTree tree, TextSpan? span, DiagnosticAnalyzer analyzer)
1413
return
AnalyzerDiagnosticReporter
.GetInstance(new SourceOrAdditionalFile(tree), span, Compilation, analyzer, isSyntaxDiagnostic: false,
1418
private
AnalyzerDiagnosticReporter
GetAddSyntaxDiagnostic(SourceOrAdditionalFile file, DiagnosticAnalyzer analyzer)
1420
return
AnalyzerDiagnosticReporter
.GetInstance(file, span: null, Compilation, analyzer, isSyntaxDiagnostic: true,