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

Unified Diff: compiler/java/com/google/dart/compiler/DartCompiler.java

Issue 10919133: Support for new 'export' directive in resolver (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Tweak for parsing import/export directives Created 8 years, 3 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 | compiler/java/com/google/dart/compiler/ast/LibraryExport.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: compiler/java/com/google/dart/compiler/DartCompiler.java
diff --git a/compiler/java/com/google/dart/compiler/DartCompiler.java b/compiler/java/com/google/dart/compiler/DartCompiler.java
index 166b8c2cddab4572cd4390b576e987e9776e6f2a..c819db8f1598081ec5d835faddc888125df8c0de 100644
--- a/compiler/java/com/google/dart/compiler/DartCompiler.java
+++ b/compiler/java/com/google/dart/compiler/DartCompiler.java
@@ -428,7 +428,17 @@ public class DartCompiler {
for (LibraryNode libNode : lib.getImportPaths()) {
LibrarySource dep = getImportSource(libSrc, libNode);
if (dep != null) {
- lib.addImport(updateLibraries(dep), libNode);
+ LibraryUnit importedLib = updateLibraries(dep);
+ lib.addImport(importedLib, libNode);
+ if (libNode.isExported()) {
+ lib.addExport(importedLib, libNode);
+ }
+ }
+ }
+ for (LibraryNode libNode : lib.getExportPaths()) {
+ LibrarySource dep = getImportSource(libSrc, libNode);
+ if (dep != null) {
+ lib.addExport(updateLibraries(dep), libNode);
}
}
return lib;
« no previous file with comments | « no previous file | compiler/java/com/google/dart/compiler/ast/LibraryExport.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698