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