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

Unified Diff: compiler/java/com/google/dart/compiler/ast/LibraryImport.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/LibraryImport.java
diff --git a/compiler/java/com/google/dart/compiler/ast/LibraryImport.java b/compiler/java/com/google/dart/compiler/ast/LibraryImport.java
index e6f32f557768403c2c508d200b7b0ed18bd334b3..986fb3c2f19c73c8ef4704996825c1a54dc50eff 100644
--- a/compiler/java/com/google/dart/compiler/ast/LibraryImport.java
+++ b/compiler/java/com/google/dart/compiler/ast/LibraryImport.java
@@ -18,15 +18,12 @@ public class LibraryImport {
private final String prefix;
private final Set<String> showNames;
private final Set<String> hideNames;
- private final boolean exported;
- public LibraryImport(LibraryUnit library, String prefix, List<ImportCombinator> combinators,
- boolean exported) {
+ public LibraryImport(LibraryUnit library, String prefix, List<ImportCombinator> combinators) {
this.library = library;
this.prefix = prefix;
this.showNames = createCombinatorsSet(combinators, true);
this.hideNames = createCombinatorsSet(combinators, false);
- this.exported = exported;
}
@Override
@@ -39,8 +36,7 @@ public class LibraryImport {
if (obj instanceof LibraryImport) {
LibraryImport other = (LibraryImport) obj;
return Objects.equal(library, other.library) && Objects.equal(prefix, other.prefix)
- && Objects.equal(showNames, other.showNames) && Objects.equal(hideNames, other.hideNames)
- && exported == other.exported;
+ && Objects.equal(showNames, other.showNames) && Objects.equal(hideNames, other.hideNames);
}
return false;
}
@@ -63,10 +59,6 @@ public class LibraryImport {
return true;
}
- public boolean isExported() {
- return exported;
- }
-
private static Set<String> createCombinatorsSet(List<ImportCombinator> combinators, boolean show) {
Set<String> result = Sets.newHashSet();
for (ImportCombinator combinator : combinators) {

Powered by Google App Engine
This is Rietveld 408576698