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

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

Issue 1005693007: Add toMap / toMapOf / toList (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. 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
« no previous file with comments | « pkg/analyzer/lib/src/task/model.dart ('k') | pkg/analyzer/lib/task/model.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/task/dart.dart
diff --git a/pkg/analyzer/lib/task/dart.dart b/pkg/analyzer/lib/task/dart.dart
index 9e1285a0dd97de646d5b9e9aca2a2c11fe60dbe6..62d716abc012feb39a909ce52123689c5291c7b5 100644
--- a/pkg/analyzer/lib/task/dart.dart
+++ b/pkg/analyzer/lib/task/dart.dart
@@ -39,9 +39,8 @@ final CompositeResultDescriptor<List<AnalysisError>> DART_ERRORS =
*
* The result is only available for targets representing a Dart library.
*/
-final ResultDescriptor<List<Source>> EXPORTED_LIBRARIES =
- new ResultDescriptor<List<Source>>(
- 'EXPORTED_LIBRARIES', Source.EMPTY_ARRAY);
+final ListResultDescriptor<Source> EXPORTED_LIBRARIES =
+ new ListResultDescriptor<Source>('EXPORTED_LIBRARIES', Source.EMPTY_ARRAY);
/**
* A flag specifying whether a library imports 'dart:html'.
@@ -60,9 +59,8 @@ final ResultDescriptor<bool> HAS_HTML_IMPORT =
*
* The result is only available for targets representing a Dart library.
*/
-final ResultDescriptor<List<Source>> IMPORTED_LIBRARIES =
- new ResultDescriptor<List<Source>>(
- 'IMPORTED_LIBRARIES', Source.EMPTY_ARRAY);
+final ListResultDescriptor<Source> IMPORTED_LIBRARIES =
+ new ListResultDescriptor<Source>('IMPORTED_LIBRARIES', Source.EMPTY_ARRAY);
/**
* The sources of the parts that are included in a library.
@@ -72,8 +70,8 @@ final ResultDescriptor<List<Source>> IMPORTED_LIBRARIES =
*
* The result is only available for targets representing a Dart library.
*/
-final ResultDescriptor<List<Source>> INCLUDED_PARTS =
- new ResultDescriptor<List<Source>>('INCLUDED_PARTS', Source.EMPTY_ARRAY);
+final ListResultDescriptor<Source> INCLUDED_PARTS =
+ new ListResultDescriptor<Source>('INCLUDED_PARTS', Source.EMPTY_ARRAY);
/**
* A flag specifying whether a library is launchable.
« no previous file with comments | « pkg/analyzer/lib/src/task/model.dart ('k') | pkg/analyzer/lib/task/model.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698