Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(894)

Unified Diff: pkg/analysis_server/lib/src/domain_diagnostic.dart

Issue 2937323003: Remove ability to disable new analysis driver (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | pkg/analysis_server/lib/src/domain_execution.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/domain_diagnostic.dart
diff --git a/pkg/analysis_server/lib/src/domain_diagnostic.dart b/pkg/analysis_server/lib/src/domain_diagnostic.dart
index 8e6027ae202b7b40ac1da68a4d68f76b9f28d3ef..16aa7a98b7441984305fbfa1b249a948d2b2044f 100644
--- a/pkg/analysis_server/lib/src/domain_diagnostic.dart
+++ b/pkg/analysis_server/lib/src/domain_diagnostic.dart
@@ -37,14 +37,8 @@ class DiagnosticDomainHandler implements RequestHandler {
/// Answer the `diagnostic.getDiagnostics` request.
Response computeDiagnostics(Request request) {
- List<ContextData> contexts = <ContextData>[];
- if (server.options.enableNewAnalysisDriver) {
- contexts = server.driverMap.values.map(extractDataFromDriver).toList();
- } else {
- for (AnalysisContext context in server.analysisContexts) {
- contexts.add(extractDataFromContext(context));
- }
- }
+ List<ContextData> contexts =
+ server.driverMap.values.map(extractDataFromDriver).toList();
return new DiagnosticGetDiagnosticsResult(contexts).toResponse(request.id);
}
« no previous file with comments | « pkg/analysis_server/lib/src/domain_analysis.dart ('k') | pkg/analysis_server/lib/src/domain_execution.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698