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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DartSdk.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/sdk/DartSdk.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DartSdk.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DartSdk.java
index fde41aeb346a375501a2433228ec4681bf468998..d900aab8fd22001c143f6b07c19934d16762d326 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DartSdk.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DartSdk.java
@@ -67,6 +67,15 @@ public interface DartSdk {
public SdkLibrary[] getSdkLibraries();
/**
+ * Return the library representing the library with the given {@code dart:} URI, or {@code null}
+ * if the given URI does not denote a library in this SDK.
+ *
+ * @param dartUri the URI of the library to be returned
+ * @return the SDK library object
+ */
+ public SdkLibrary getSdkLibrary(String dartUri);
+
+ /**
* Return the revision number of this SDK, or {@code "0"} if the revision number cannot be
* discovered.
*

Powered by Google App Engine
This is Rietveld 408576698