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

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

Issue 2235373003: Fix summary handling of unresolved imports, exports, and parts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Simplify `allowMissingFiles` 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
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/builder.dart ('k') | pkg/analyzer/lib/src/dart/element/handle.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/dart/element/element.dart
diff --git a/pkg/analyzer/lib/src/dart/element/element.dart b/pkg/analyzer/lib/src/dart/element/element.dart
index 0ac63cf60a72f733484ffdb3ebcc4d2f47300a23..491025e0bee8683f54745eb1ed23c5af73d74749 100644
--- a/pkg/analyzer/lib/src/dart/element/element.dart
+++ b/pkg/analyzer/lib/src/dart/element/element.dart
@@ -4157,23 +4157,6 @@ class ExportElementImpl extends UriReferencedElementImpl
}
@override
- bool get uriExists {
- if (_unlinkedExportNonPublic != null) {
- return true;
- }
- return hasModifier(Modifier.URI_EXISTS);
- }
-
- /**
- * Set whether the file referenced by the import's URI exists to match the
- * given flag.
- */
- void set uriExists(bool exists) {
- assert(_unlinkedExportNonPublic == null);
- setModifier(Modifier.URI_EXISTS, exists);
- }
-
- @override
int get uriOffset {
if (_unlinkedExportNonPublic != null) {
return _unlinkedExportNonPublic.uriOffset;
@@ -5117,23 +5100,6 @@ class ImportElementImpl extends UriReferencedElementImpl
}
@override
- bool get uriExists {
- if (_unlinkedImport != null) {
- return true;
- }
- return hasModifier(Modifier.URI_EXISTS);
- }
-
- /**
- * Set whether the file referenced by the import's URI exists to match the
- * given flag.
- */
- void set uriExists(bool exists) {
- assert(_unlinkedImport == null);
- setModifier(Modifier.URI_EXISTS, exists);
- }
-
- @override
int get uriOffset {
if (_unlinkedImport != null) {
if (_unlinkedImport.isImplicit) {
@@ -6433,12 +6399,6 @@ class Modifier extends Enum<Modifier> {
*/
static const Modifier SYNTHETIC = const Modifier('SYNTHETIC', 16);
- /**
- * A flag used for import and export elements that indicates whether the URI
- * in the corresponding directive referenced a file that exists.
- */
- static const Modifier URI_EXISTS = const Modifier('URI_EXISTS', 17);
-
static const List<Modifier> values = const [
ABSTRACT,
ASYNCHRONOUS,
@@ -6456,8 +6416,7 @@ class Modifier extends Enum<Modifier> {
REFERENCES_SUPER,
SETTER,
STATIC,
- SYNTHETIC,
- URI_EXISTS
+ SYNTHETIC
];
const Modifier(String name, int ordinal) : super(name, ordinal);
« no previous file with comments | « pkg/analyzer/lib/src/dart/element/builder.dart ('k') | pkg/analyzer/lib/src/dart/element/handle.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698