1 instantiation of AdditionalFileAnalysisContext
Microsoft.CodeAnalysis (1)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
621var context = new AdditionalFileAnalysisContext(additionalFile, AnalyzerOptions, diagReporter.AddDiagnosticAction, isSupportedDiagnostic, Compilation, filterSpan, cancellationToken);
19 references to AdditionalFileAnalysisContext
Microsoft.CodeAnalysis (8)
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
621var context = new AdditionalFileAnalysisContext(additionalFile, AnalyzerOptions, diagReporter.AddDiagnosticAction, isSupportedDiagnostic, Compilation, filterSpan, cancellationToken);
DiagnosticAnalyzer\DiagnosticAnalysisContext.cs (3)
127public virtual void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action) 443public virtual void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action) 1587/// An additional file action can use an <see cref="AdditionalFileAnalysisContext"/> to report <see cref="Diagnostic"/>s about a non-source <see cref="AdditionalText"/> document.
DiagnosticAnalyzer\DiagnosticAnalyzerAction.cs (2)
152public Action<AdditionalFileAnalysisContext> Action { get; } 154public AdditionalFileAnalyzerAction(Action<AdditionalFileAnalysisContext> action, DiagnosticAnalyzer analyzer)
DiagnosticAnalyzer\DiagnosticStartAnalysisScope.cs (2)
48public override void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action) 153public override void RegisterAdditionalFileAction(Action<AdditionalFileAnalysisContext> action)
Microsoft.CodeAnalysis.CodeStyle (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
80/// - <see cref="AdditionalFileAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire file) 82/// - <paramref name="span"/> intersects with <see cref="AdditionalFileAnalysisContext.FilterSpan"/>. 84public static bool ShouldAnalyzeSpan(this AdditionalFileAnalysisContext context, TextSpan span)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (1)
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
137public void AnalyzeCompilation(AdditionalFileAnalysisContext context)
Microsoft.CodeAnalysis.Test.Utilities (2)
Diagnostics\CommonDiagnosticAnalyzers.cs (1)
2652private void AnalyzeAdditionalFile(AdditionalFileAnalysisContext context)
Diagnostics\TestDiagnosticAnalyzer.cs (1)
92private void AnalyzeAdditionalFile(AdditionalFileAnalysisContext context)
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\AnalysisContextExtensions.cs (3)
80/// - <see cref="AdditionalFileAnalysisContext.FilterSpan"/> is <see langword="null"/> (we are analyzing the entire file) 82/// - <paramref name="span"/> intersects with <see cref="AdditionalFileAnalysisContext.FilterSpan"/>. 84public static bool ShouldAnalyzeSpan(this AdditionalFileAnalysisContext context, TextSpan span)
System.Windows.Forms.Analyzers (2)
System\Windows\Forms\Analyzers\AppManifestAnalyzer.cs (2)
28private void AdditionalFileAction(AdditionalFileAnalysisContext context) 36private static void VerifyAppManifest(AdditionalFileAnalysisContext context, AdditionalText appManifest)