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

Unified Diff: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java

Issue 75043004: Fix for issue 14982 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « no previous file | tests/lib/analyzer/analyze_library.status » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java
diff --git a/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java b/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java
index 3a76fd6dce62ddc480e7c79ec02e556ced7d281a..d225c6d1197643973327b9ae7b5c37ce1720caba 100644
--- a/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java
+++ b/editor/tools/plugins/com.google.dart.command.analyze/src/com/google/dart/command/analyze/AnalyzerImpl.java
@@ -325,9 +325,14 @@ class AnalyzerImpl {
// may be file in SDK
if (sdk instanceof DirectoryBasedDartSdk) {
DirectoryBasedDartSdk directoryBasedSdk = sdk;
- String sdkLibPath = directoryBasedSdk.getLibraryDirectory().getPath() + File.separator;
- if (file.getPath().startsWith(sdkLibPath)) {
- return UriKind.DART_URI;
+ File libraryDirectory = directoryBasedSdk.getLibraryDirectory();
+ String sdkLibPath = libraryDirectory.getPath() + File.separator;
+ String filePath = file.getPath();
+ if (filePath.startsWith(sdkLibPath)) {
+ String internalPath = new File(libraryDirectory, "_internal").getPath() + File.separator;
+ if (!filePath.startsWith(internalPath)) {
+ return UriKind.DART_URI;
+ }
}
}
// some generic file
« no previous file with comments | « no previous file | tests/lib/analyzer/analyze_library.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698