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

Unified Diff: pkg/analyzer/lib/src/generated/error_verifier.dart

Issue 2982993003: Remove UriReferencedElement with its uri/uriOffset/uriEnd properties. (Closed)
Patch Set: Merge. Created 3 years, 5 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
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/handle.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/handle.dart ('k') | pkg/analyzer/lib/src/summary/resynthesize.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698