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

Unified Diff: pkg/analyzer/lib/src/dart/analysis/driver.dart

Issue 3006653002: Work around breaking task_dependency_graph/check_test because of a bug in AnalysisContext with gene… (Closed)
Patch Set: Created 3 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/analysis/driver.dart
diff --git a/pkg/analyzer/lib/src/dart/analysis/driver.dart b/pkg/analyzer/lib/src/dart/analysis/driver.dart
index fdb01cb6064e6b4f71caba5eb3cde3f22f10c069..9c7d00664b41b7425a8776e895d20af01642de45 100644
--- a/pkg/analyzer/lib/src/dart/analysis/driver.dart
+++ b/pkg/analyzer/lib/src/dart/analysis/driver.dart
@@ -44,6 +44,13 @@ import 'package:front_end/src/base/performace_logger.dart';
import 'package:front_end/src/byte_store/byte_store.dart';
import 'package:meta/meta.dart';
+/**
+ * TODO(scheglov) We could use generalized Function in [AnalysisDriverTestView],
+ * but this breaks `AnalysisContext` and code generation. So, for now let's
+ * work around them, and rewrite generators to [AnalysisDriver].
+ */
+typedef Future<Null> WorkToWaitAfterComputingResult(String path);
+
/**
* This class computes [AnalysisResult]s for Dart files.
*
@@ -1675,7 +1682,7 @@ class AnalysisDriverTestView {
int numOfAnalyzedLibraries = 0;
- Future<Null> Function(String path) workToWaitAfterComputingResult;
+ WorkToWaitAfterComputingResult workToWaitAfterComputingResult;
AnalysisDriverTestView(this.driver);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698