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

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

Issue 994293002: Task: Build Library Element Model (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updates 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/general.dart ('k') | pkg/analyzer/test/src/task/dart_test.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 2bfbdc8c52940851c58e19bef5972f51b550dc9f..8309a488fc09e6db86ec08b2a7873d09319c8809 100644
--- a/pkg/analyzer/lib/task/dart.dart
+++ b/pkg/analyzer/lib/task/dart.dart
@@ -13,6 +13,29 @@ import 'package:analyzer/task/general.dart';
import 'package:analyzer/task/model.dart';
/**
+ * The errors produced while builing a library element.
+ *
+ * The list will be empty if there were no errors, but will not be `null`.
+ *
+ * The result is only available for targets representing a Dart library.
+ */
+final ResultDescriptor<List<AnalysisError>> BUILD_LIBRARY_ERRORS =
+ new ResultDescriptor<List<AnalysisError>>(
+ 'BUILD_LIBRARY_ERRORS', AnalysisError.NO_ERRORS,
+ contributesTo: ANALYSIS_ERRORS);
+
+/**
+ * The partial [LibraryElement] associated with a library.
+ *
+ * The [LibraryElement] and its [CompilationUnitElement]s are attached to each
+ * other. Directives 'library', 'part' and 'part of' are resolved.
+ *
+ * The result is only available for targets representing a Dart library.
+ */
+final ResultDescriptor<LibraryElement> BUILT_LIBRARY_ELEMENT =
+ new ResultDescriptor<LibraryElement>('BUILT_LIBRARY_ELEMENT', null);
+
+/**
* The compilation unit associated with a [Source] after it has had all
* declarations bound to the element defined by the declaration.
*
@@ -43,6 +66,14 @@ final ResultDescriptor<List<Source>> EXPORTED_LIBRARIES =
'EXPORTED_LIBRARIES', Source.EMPTY_ARRAY);
/**
+ * A flag specifying whether a library imports 'dart:html'.
+ *
+ * The result is only available for targets representing a Dart library.
+ */
+final ResultDescriptor<bool> HAS_HTML_IMPORT =
+ new ResultDescriptor<bool>('HAS_HTML_IMPORT', false);
+
+/**
* The sources of the libraries that are imported into a library.
*
* The list will be empty if there are no imported libraries, but will not be
@@ -66,6 +97,14 @@ final ResultDescriptor<List<Source>> INCLUDED_PARTS =
new ResultDescriptor<List<Source>>('INCLUDED_PARTS', Source.EMPTY_ARRAY);
/**
+ * A flag specifying whether a library is launchable.
+ *
+ * The result is only available for targets representing a Dart library.
+ */
+final ResultDescriptor<bool> IS_LAUNCHABLE =
+ new ResultDescriptor<bool>('IS_LAUNCHABLE', false);
+
+/**
* The errors produced while parsing a compilation unit.
*
* The list will be empty if there were no errors, but will not be `null`.
« no previous file with comments | « pkg/analyzer/lib/src/task/general.dart ('k') | pkg/analyzer/test/src/task/dart_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698