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

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

Issue 10832321: Issue 4048. Support for revised library/import syntax (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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
diff --git a/compiler/java/com/google/dart/compiler/ast/DartImportDirective.java b/compiler/java/com/google/dart/compiler/ast/DartImportDirective.java
index 0dd1dc6cc6b969ed64f3bf8bd723263f81f4598c..a31baed3b5bed9ac680124a301e0a613f0028f51 100644
--- a/compiler/java/com/google/dart/compiler/ast/DartImportDirective.java
+++ b/compiler/java/com/google/dart/compiler/ast/DartImportDirective.java
@@ -55,6 +55,17 @@ public class DartImportDirective extends DartDirective {
return combinators;
}
+ public String getPrefixValue() {
+ if (prefix != null) {
+ return prefix.getName();
+ }
+ // TODO(brianwilkerson) Remove this part once the obsolete format is no longer supported.
+ if (oldPrefix != null) {
+ return oldPrefix.getValue();
+ }
+ return null;
+ }
+
@Deprecated
public DartStringLiteral getOldPrefix() {
// TODO(brianwilkerson) Remove this method once the obsolete format is no longer supported.

Powered by Google App Engine
This is Rietveld 408576698