| 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
|
|
|