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

Unified Diff: pkg/analyzer/lib/task/model.dart

Issue 1009033002: Compute TYPE_PROVIDER using BuildTypeProviderTask. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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
Index: pkg/analyzer/lib/task/model.dart
diff --git a/pkg/analyzer/lib/task/model.dart b/pkg/analyzer/lib/task/model.dart
index a473e33bfe9b135db61636018ba8db109782de41..dc4e0a25b0d59ccb62f8f0e9815af7a5cf0fefbc 100644
--- a/pkg/analyzer/lib/task/model.dart
+++ b/pkg/analyzer/lib/task/model.dart
@@ -27,6 +27,20 @@ typedef AnalysisTask BuildTask(AnalysisContext context, AnalysisTarget target);
typedef Map<String, TaskInput> CreateTaskInputs(AnalysisTarget target);
/**
+ * An [AnalysisTarget] wrapper for an [AnalysisContext].
+ */
+class AnalysisContextTarget implements AnalysisTarget {
+ static final AnalysisContextTarget request = new AnalysisContextTarget(null);
+
+ final AnalysisContext context;
+
+ AnalysisContextTarget(this.context);
+
+ @override
+ Source get source => null;
+}
+
+/**
* An object with which an analysis result can be associated.
*
* Clients are allowed to subtype this class when creating new kinds of targets.

Powered by Google App Engine
This is Rietveld 408576698