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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ImportElementImpl.java

Issue 15741017: Issue 8365. Report error when user library imports an internal SDK library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ImportElementImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ImportElementImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ImportElementImpl.java
index b7a3573f4d09474646fc5d20b34a05c876d9cc83..8f458a7e63cb32b09c784e6155c746a67fd4b39b 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ImportElementImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/element/ImportElementImpl.java
@@ -27,6 +27,11 @@ import com.google.dart.engine.element.PrefixElement;
*/
public class ImportElementImpl extends ElementImpl implements ImportElement {
/**
+ * The URI that was is specified by this import directive.
+ */
+ private String uri;
+
+ /**
* The library that is imported into this library by this import directive.
*/
private LibraryElement importedLibrary;
@@ -75,6 +80,11 @@ public class ImportElementImpl extends ElementImpl implements ImportElement {
return prefix;
}
+ @Override
+ public String getUri() {
+ return uri;
+ }
+
/**
* Set the combinators that were specified as part of the import directive to the given array of
* combinators.
@@ -104,6 +114,15 @@ public class ImportElementImpl extends ElementImpl implements ImportElement {
this.prefix = prefix;
}
+ /**
+ * Set the URI that was is specified by this import directive.
+ *
+ * @param uri the URI that was is specified by this import directive.
+ */
+ public void setUri(String uri) {
+ this.uri = uri;
+ }
+
@Override
public void visitChildren(ElementVisitor<?> visitor) {
super.visitChildren(visitor);

Powered by Google App Engine
This is Rietveld 408576698