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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/LibraryElement.java

Issue 244253009: Fix for issue 18273 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Clean-up Created 6 years, 8 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 | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/LibraryElement.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/LibraryElement.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/LibraryElement.java
index 9d38a2c7432a62ce2f8247bfe327d0dbab2799f3..44c56043d607061403b0f817b97fc21d20f9adcf 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/LibraryElement.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/element/LibraryElement.java
@@ -66,6 +66,20 @@ public interface LibraryElement extends Element {
public ImportElement[] getImports();
/**
+ * Return an array containing all of the imports that share the given prefix, or an empty array if
+ * there are no such imports.
+ *
+ * @param prefixElement the prefix element shared by the returned imports
+ */
+ public ImportElement[] getImportsWithPrefix(PrefixElement prefixElement);
+
+ /**
+ * Return the element representing the synthetic function {@code loadLibrary} that is implicitly
+ * defined for this library if the library is imported using a deferred import.
+ */
+ public FunctionElement getLoadLibraryFunction();
+
+ /**
* Return an array containing all of the compilation units that are included in this library using
* a {@code part} directive. This does not include the defining compilation unit that contains the
* {@code part} directives.
@@ -128,7 +142,7 @@ public interface LibraryElement extends Element {
public boolean isAngularHtml();
/**
- * Answer {@code true} if this library is an application that can be run in the browser.
+ * Return {@code true} if this library is an application that can be run in the browser.
*
* @return {@code true} if this library is an application that can be run in the browser
*/
« no previous file with comments | « no previous file | editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/AnalysisContextImpl.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698