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

Unified Diff: pkg/analyzer/lib/src/summary/idl.dart

Issue 1738213003: Use separate relation kinds for qualified usages. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 10 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/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/index_unit.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/idl.dart
diff --git a/pkg/analyzer/lib/src/summary/idl.dart b/pkg/analyzer/lib/src/summary/idl.dart
index 37f050d0f841cbdad52bfe307718f53fd017dafb..ef71115cf2a63986aacf0eebf7aab9bda362b7ae 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -149,34 +149,7 @@ abstract class EntityRef extends base.SummaryClass {
}
/**
- * When we need to reference a synthetic element in [PackageIndex] we use a
- * value of this enum to specify which kind of the synthetic element we
- * actually reference.
- */
-enum IndexSyntheticElementKind {
- /**
- * Not a synthetic element.
- */
- notSynthetic,
-
- /**
- * The unnamed synthetic constructor a class element.
- */
- constructor,
-
- /**
- * The synthetic getter of a property introducing element.
- */
- getter,
-
- /**
- * The synthetic setter of a property introducing element.
- */
- setter
-}
-
-/**
- * Enum used to indicate the kind of index relation.
+ * Enum used to indicate the kind of an index relation.
*/
enum IndexRelationKind {
/**
@@ -208,11 +181,52 @@ enum IndexRelationKind {
IS_INVOKED_BY,
/**
+ * Left: method, property accessor, function, variable.
+ * Is invoked with a qualifier at.
+ * Right: location.
+ */
+ IS_INVOKED_QUALIFIED_BY,
+
+ /**
* Left: any element.
* Is referenced (and not invoked, read/written) at.
* Right: location.
*/
- IS_REFERENCED_BY
+ IS_REFERENCED_BY,
+
+ /**
+ * Left: any element.
+ * Is referenced (and not invoked, read/written) with a qualifier at.
+ * Right: location.
+ */
+ IS_REFERENCED_QUALIFIED_BY
+}
+
+/**
+ * When we need to reference a synthetic element in [PackageIndex] we use a
+ * value of this enum to specify which kind of the synthetic element we
+ * actually reference.
+ */
+enum IndexSyntheticElementKind {
+ /**
+ * Not a synthetic element.
+ */
+ notSynthetic,
+
+ /**
+ * The unnamed synthetic constructor a class element.
+ */
+ constructor,
+
+ /**
+ * The synthetic getter of a property introducing element.
+ */
+ getter,
+
+ /**
+ * The synthetic setter of a property introducing element.
+ */
+ setter
}
/**
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/lib/src/summary/index_unit.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698