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

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

Issue 1130763003: Get computeError working (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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/dart.dart
diff --git a/pkg/analyzer/lib/task/dart.dart b/pkg/analyzer/lib/task/dart.dart
index 284985bedc94c74056f4bd389b3a4801e0a9087f..214d2af054cbd1e034f8fdf99d223aa48436d8c7 100644
--- a/pkg/analyzer/lib/task/dart.dart
+++ b/pkg/analyzer/lib/task/dart.dart
@@ -16,13 +16,11 @@ import 'package:analyzer/task/model.dart';
/**
* The analysis errors associated with a target.
*
- * The value combines errors represented by multiple other results.
+ * The result is only available for targets representing a Dart compilation unit.
*/
-// TODO(brianwilkerson) If we want to associate errors with targets smaller than
-// a file, we will need other contribution points to collect them. In which case
-// we might want to rename this and/or document that it applies to files.
-final CompositeResultDescriptor<List<AnalysisError>> DART_ERRORS =
- new CompositeResultDescriptor<List<AnalysisError>>('DART_ERRORS');
+final ResultDescriptor<List<AnalysisError>> DART_ERRORS =
+ new ResultDescriptor<List<AnalysisError>>(
+ 'DART_ERRORS', AnalysisError.NO_ERRORS);
/**
* The sources of the libraries that are explicitly imported into a library.

Powered by Google App Engine
This is Rietveld 408576698