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

Unified Diff: compiler/java/com/google/dart/compiler/ast/LibraryNode.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
Index: compiler/java/com/google/dart/compiler/ast/LibraryNode.java
diff --git a/compiler/java/com/google/dart/compiler/ast/LibraryNode.java b/compiler/java/com/google/dart/compiler/ast/LibraryNode.java
index 3e2fd672766408530114fd9f10f503a33a7b2601..31407d8ce67018ba03e2a1ffa9b4cd6a7e042e3b 100644
--- a/compiler/java/com/google/dart/compiler/ast/LibraryNode.java
+++ b/compiler/java/com/google/dart/compiler/ast/LibraryNode.java
@@ -39,6 +39,13 @@ public class LibraryNode extends AbstractNode {
this.exported = importDirective.isExported();
}
+ public LibraryNode(DartExportDirective exportDirective) {
+ this.text = exportDirective.getLibraryUri().getValue();
+ this.prefix = null;
+ this.combinators = exportDirective.getCombinators();
+ this.exported = false;
+ }
+
public String getText() {
return text;
}

Powered by Google App Engine
This is Rietveld 408576698