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

Unified Diff: compiler/java/com/google/dart/compiler/ast/DartImportDirective.java

Issue 10916145: Parser changes to support new export directive (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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/DartImportDirective.java
===================================================================
--- compiler/java/com/google/dart/compiler/ast/DartImportDirective.java (revision 11954)
+++ compiler/java/com/google/dart/compiler/ast/DartImportDirective.java (working copy)
@@ -18,16 +18,17 @@
private NodeList<ImportCombinator> combinators = new NodeList<ImportCombinator>(this);
+ // TODO(brianwilkerson) Remove this field once the obsolete format is no longer supported.
private boolean exported;
private DartStringLiteral oldPrefix;
- public DartImportDirective(DartStringLiteral libraryUri, DartIdentifier prefix, List<ImportCombinator> combinators, boolean exported) {
+ public DartImportDirective(DartStringLiteral libraryUri, DartIdentifier prefix, List<ImportCombinator> combinators) {
obsoleteFormat = false;
this.libraryUri = becomeParentOf(libraryUri);
this.prefix = becomeParentOf(prefix);
this.combinators.addAll(combinators);
- this.exported = exported;
+ this.exported = false;
}
public DartImportDirective(DartStringLiteral libraryUri, DartBooleanLiteral exported, List<ImportCombinator> combinators, DartStringLiteral prefix) {
@@ -43,6 +44,7 @@
}
public boolean isExported() {
+ // TODO(brianwilkerson) Remove this method once the obsolete format is no longer supported.
return exported;
}

Powered by Google App Engine
This is Rietveld 408576698