16 instantiations of CompilationWithAnalyzersOptions
AnalyzerRunner (2)
DiagnosticAnalyzerRunner.cs (2)
190CompilationWithAnalyzers compilationWithAnalyzers = compilation.WithAnalyzers(languageAnalyzers, new CompilationWithAnalyzersOptions(project.AnalyzerOptions, null, analyzerOptionsInternal.RunConcurrent, logAnalyzerExecutionTime: true, reportSuppressedDiagnostics: analyzerOptionsInternal.ReportSuppressedDiagnostics)); 396var compilationWithAnalyzers = newCompilation.WithAnalyzers(analyzers, new CompilationWithAnalyzersOptions(project.AnalyzerOptions, null, analyzerOptionsInternal.RunConcurrent, logAnalyzerExecutionTime: true, reportSuppressedDiagnostics: analyzerOptionsInternal.ReportSuppressedDiagnostics));
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\AnalyzerDriver.cs (1)
851var analysisOptions = new CompilationWithAnalyzersOptions(options, onAnalyzerException, analyzerExceptionFilter: analyzerExceptionFilter, concurrentAnalysis: true, logAnalyzerExecutionTime: reportAnalyzer, reportSuppressedDiagnostics: false);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (1)
84: this(compilation, analyzers, new CompilationWithAnalyzersOptions(options, onAnalyzerException: null, analyzerExceptionFilter: null, concurrentAnalysis: true, logAnalyzerExecutionTime: true, reportSuppressedDiagnostics: false))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4317var options = new CompilationWithAnalyzersOptions(analyzerOptions, onAnalyzerException: null, concurrentAnalysis: true, logAnalyzerExecutionTime: true);
Diagnostics\DiagnosticSuppressorTests.cs (1)
714var options = new CompilationWithAnalyzersOptions(AnalyzerOptions.Empty, onAnalyzerException: null, concurrentAnalysis: true, logAnalyzerExecutionTime: true, reportSuppressedDiagnostics: true);
Diagnostics\GetDiagnosticsTests.cs (4)
664new CompilationWithAnalyzersOptions( 717new CompilationWithAnalyzersOptions( 746new CompilationWithAnalyzersOptions( 1458var options = new CompilationWithAnalyzersOptions(AnalyzerOptions.Empty, onAnalyzerException: null,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
167var compilationWithAnalyzersOptions = new CompilationWithAnalyzersOptions(analyzerOptions, onAnalyzerException: null, concurrentAnalysis: false, logAnalyzerExecutionTime: false);
Microsoft.CodeAnalysis.Features (1)
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
84var analyzerOptions = new CompilationWithAnalyzersOptions(
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (2)
164var projectAnalyzerOptions = new CompilationWithAnalyzersOptions( 171var hostAnalyzerOptions = new CompilationWithAnalyzersOptions(
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (2)
636var projectAnalyzerOptions = new CompilationWithAnalyzersOptions( 643var hostAnalyzerOptions = new CompilationWithAnalyzersOptions(
21 references to CompilationWithAnalyzersOptions
Microsoft.CodeAnalysis (12)
DiagnosticAnalyzer\AnalyzerDriver.cs (2)
463CompilationWithAnalyzersOptions analysisOptions, 851var analysisOptions = new CompilationWithAnalyzersOptions(options, onAnalyzerException, analyzerExceptionFilter: analyzerExceptionFilter, concurrentAnalysis: true, logAnalyzerExecutionTime: reportAnalyzer, reportSuppressedDiagnostics: false);
DiagnosticAnalyzer\CompilationWithAnalyzers.cs (6)
30private readonly CompilationWithAnalyzersOptions _analysisOptions; 59public CompilationWithAnalyzersOptions AnalysisOptions => _analysisOptions; 94public CompilationWithAnalyzers(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzersOptions analysisOptions) 113private static void VerifyArguments(Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzersOptions analysisOptions) 365CompilationWithAnalyzersOptions analysisOptions, 1274/// Gets telemetry info for the given analyzer, such as count of registered actions, the total execution time (if <see cref="CompilationWithAnalyzersOptions.LogAnalyzerExecutionTime"/> is true), etc.
DiagnosticAnalyzer\CompilationWithAnalyzersOptions.cs (3)
52/// Creates a new <see cref="CompilationWithAnalyzersOptions"/>. 68/// Creates a new <see cref="CompilationWithAnalyzersOptions"/>. 86/// Creates a new <see cref="CompilationWithAnalyzersOptions"/>.
DiagnosticAnalyzer\DiagnosticAnalyzerExtensions.cs (1)
41public static CompilationWithAnalyzers WithAnalyzers(this Compilation compilation, ImmutableArray<DiagnosticAnalyzer> analyzers, CompilationWithAnalyzersOptions analysisOptions)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4317var options = new CompilationWithAnalyzersOptions(analyzerOptions, onAnalyzerException: null, concurrentAnalysis: true, logAnalyzerExecutionTime: true);
Diagnostics\DiagnosticSuppressorTests.cs (1)
714var options = new CompilationWithAnalyzersOptions(AnalyzerOptions.Empty, onAnalyzerException: null, concurrentAnalysis: true, logAnalyzerExecutionTime: true, reportSuppressedDiagnostics: true);
Diagnostics\GetDiagnosticsTests.cs (1)
1458var options = new CompilationWithAnalyzersOptions(AnalyzerOptions.Empty, onAnalyzerException: null,
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (1)
Preview\PreviewWorkspaceTests.cs (1)
167var compilationWithAnalyzersOptions = new CompilationWithAnalyzersOptions(analyzerOptions, onAnalyzerException: null, concurrentAnalysis: false, logAnalyzerExecutionTime: false);
Microsoft.CodeAnalysis.Features (1)
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
84var analyzerOptions = new CompilationWithAnalyzersOptions(
Microsoft.CodeAnalysis.LanguageServer.Protocol (2)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (2)
164var projectAnalyzerOptions = new CompilationWithAnalyzersOptions( 171var hostAnalyzerOptions = new CompilationWithAnalyzersOptions(
Microsoft.CodeAnalysis.Remote.ServiceHub (2)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (2)
636var projectAnalyzerOptions = new CompilationWithAnalyzersOptions( 643var hostAnalyzerOptions = new CompilationWithAnalyzersOptions(