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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InternalAnalysisContext.java

Issue 17277004: Split list of referenced libraries (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 6 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InternalAnalysisContext.java
===================================================================
--- editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InternalAnalysisContext.java (revision 24187)
+++ editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InternalAnalysisContext.java (working copy)
@@ -38,6 +38,28 @@
public void addSourceInfo(Source source, SourceEntry info);
/**
+ * Return an array containing the sources of the libraries that are exported by the library with
+ * the given source. The array will be empty if the given source is invalid, if the given source
+ * does not represent a library, or if the library does not export any other libraries.
+ *
+ * @param source the source representing the library whose exports are to be returned
+ * @return the sources of the libraries that are exported by the given library
+ * @throws AnalysisException if the exported libraries could not be computed
+ */
+ public Source[] computeExportedLibraries(Source source) throws AnalysisException;
+
+ /**
+ * Return an array containing the sources of the libraries that are imported by the library with
+ * the given source. The array will be empty if the given source is invalid, if the given source
+ * does not represent a library, or if the library does not import any other libraries.
+ *
+ * @param source the source representing the library whose imports are to be returned
+ * @return the sources of the libraries that are imported by the given library
+ * @throws AnalysisException if the imported libraries could not be computed
+ */
+ public Source[] computeImportedLibraries(Source source) throws AnalysisException;
+
+ /**
* Return an AST structure corresponding to the given source, but ensure that the structure has
* not already been resolved and will not be resolved by any other threads or in any other
* library.

Powered by Google App Engine
This is Rietveld 408576698