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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.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/DirectoryBasedDartSdk.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java
index df387bddb07106318e6557ce264311a490a26ea7..908f43f4da7abaebe7c5c1745773ff57d2422a11 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/sdk/DirectoryBasedDartSdk.java
@@ -294,6 +294,11 @@ public class DirectoryBasedDartSdk implements DartSdk {
return libraryMap.getSdkLibraries();
}
+ @Override
+ public SdkLibrary getSdkLibrary(String dartUri) {
+ return libraryMap.getLibrary(dartUri);
+ }
+
/**
* Return the revision number of this SDK, or {@code "0"} if the revision number cannot be
* discovered.
@@ -366,7 +371,7 @@ public class DirectoryBasedDartSdk implements DartSdk {
@Override
public Source mapDartUri(ContentCache contentCache, String dartUri) {
- SdkLibrary library = libraryMap.getLibrary(dartUri);
+ SdkLibrary library = getSdkLibrary(dartUri);
if (library == null) {
return null;
}

Powered by Google App Engine
This is Rietveld 408576698