| Index: pkg/analyzer/lib/src/generated/error_verifier.dart
|
| diff --git a/pkg/analyzer/lib/src/generated/error_verifier.dart b/pkg/analyzer/lib/src/generated/error_verifier.dart
|
| index f8a9177bf6be18b66157a50c187d595de2ea631a..0e15b058dcfbc56d01ba1aabaf5d835bf7730732 100644
|
| --- a/pkg/analyzer/lib/src/generated/error_verifier.dart
|
| +++ b/pkg/analyzer/lib/src/generated/error_verifier.dart
|
| @@ -3566,9 +3566,15 @@ class ErrorVerifier extends RecursiveAstVisitor<Object> {
|
| if (_isInSystemLibrary) {
|
| return;
|
| }
|
| +
|
| + LibraryElement exportedLibrary = exportElement.exportedLibrary;
|
| + if (exportedLibrary == null) {
|
| + return;
|
| + }
|
| +
|
| // should be private
|
| DartSdk sdk = _currentLibrary.context.sourceFactory.dartSdk;
|
| - String uri = exportElement.uri;
|
| + String uri = exportedLibrary.source.uri.toString();
|
| SdkLibrary sdkLibrary = sdk.getSdkLibrary(uri);
|
| if (sdkLibrary == null) {
|
| return;
|
| @@ -4179,9 +4185,15 @@ class ErrorVerifier extends RecursiveAstVisitor<Object> {
|
| if (_isInSystemLibrary) {
|
| return;
|
| }
|
| +
|
| + LibraryElement importedLibrary = importElement.importedLibrary;
|
| + if (importedLibrary == null) {
|
| + return;
|
| + }
|
| +
|
| // should be private
|
| DartSdk sdk = _currentLibrary.context.sourceFactory.dartSdk;
|
| - String uri = importElement.uri;
|
| + String uri = importedLibrary.source.uri.toString();
|
| SdkLibrary sdkLibrary = sdk.getSdkLibrary(uri);
|
| if (sdkLibrary == null || !sdkLibrary.isInternal) {
|
| return;
|
|
|