13 references to WithAnalyzers
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.CSharp.Emit3.UnitTests (5)
Diagnostics\DiagnosticAnalyzerTests.cs (1)
4318var compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, options);
Diagnostics\GetDiagnosticsTests.cs (4)
788var compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, 841var compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, 870var compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, 1585compilationWithAnalyzers = compilation.WithAnalyzers(analyzers, options);
Microsoft.CodeAnalysis.Features (2)
Diagnostics\Service\DiagnosticAnalyzerService_CompilationWithAnalyzersPair.cs (1)
134return compilation.WithAnalyzers(analyzers, new CompilationWithAnalyzersOptions(
SyncNamespaces\AbstractSyncNamespacesService.cs (1)
90var analyzerCompilation = compilation.WithAnalyzers(diagnosticAnalyzers, analyzerOptions);
Microsoft.CodeAnalysis.Remote.ServiceHub (4)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (4)
146projectAnalyzers.Any() ? compilationWithAnalyzers.ProjectCompilation!.WithAnalyzers(projectAnalyzers, compilationWithAnalyzers.ProjectCompilationWithAnalyzers!.AnalysisOptions) : null, 157hostAnalyzers.Any() ? compilationWithAnalyzers.HostCompilation!.WithAnalyzers(hostAnalyzers, compilationWithAnalyzers.HostCompilationWithAnalyzers!.AnalysisOptions) : null); 467projectAnalyzers.Any() ? compilation.WithAnalyzers(projectAnalyzers, projectAnalyzerOptions) : null, 468hostAnalyzers.Any() ? compilation.WithAnalyzers(hostAnalyzers, hostAnalyzerOptions) : null);