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