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

Unified Diff: pkg/analyzer/lib/dart/element/element.dart

Issue 2226613004: Suppress follow-on errors when a file is imported with either a prefix or a show clause (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Cache URI existence in a modifier' Created 4 years, 4 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: pkg/analyzer/lib/dart/element/element.dart
diff --git a/pkg/analyzer/lib/dart/element/element.dart b/pkg/analyzer/lib/dart/element/element.dart
index b829beed070b230382d275e103e98208b085ea62..57fcdeaf418f7cb57c4a3d4c3c3051dc20525fc1 100644
--- a/pkg/analyzer/lib/dart/element/element.dart
+++ b/pkg/analyzer/lib/dart/element/element.dart
@@ -1156,6 +1156,11 @@ abstract class ExportElement implements Element, UriReferencedElement {
* directive.
*/
LibraryElement get exportedLibrary;
+
+ /**
+ * Return `true` if the file referenced by the import's URI exists.
+ */
+ bool get uriExists;
}
/**
@@ -1341,6 +1346,11 @@ abstract class ImportElement implements Element, UriReferencedElement {
* prefix, or otherwise does not have an offset.
*/
int get prefixOffset;
+
+ /**
+ * Return `true` if the file referenced by the import's URI exists.
+ */
+ bool get uriExists;
}
/**

Powered by Google App Engine
This is Rietveld 408576698