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

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

Issue 1733843007: Add tests for indexing. (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
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 9f80d09110f457bd36705425b8087b857c7486b4..bac32a908efefd47814fdf2c25316eef77235550 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -131,6 +131,31 @@ abstract class EntityRef extends base.SummaryClass {
}
/**
+ * Enum used to indicate the kind of element in [PackageIndex].
+ */
+enum IndexElementKind {
+ /**
+ * The element itself.
Paul Berry 2016/02/26 19:02:05 I'm confused. How can the "kind" of an element be
+ */
+ element,
+
+ /**
+ * The unnamed synthetic constructor a class element.
+ */
+ constructor,
+
+ /**
+ * The getter of a property introducing element.
+ */
+ getter,
+
+ /**
+ * The setter of a property introducing element.
+ */
+ setter
+}
+
+/**
* Enum used to indicate the kind of index relation.
*/
enum IndexRelationKind {
@@ -437,6 +462,13 @@ abstract class PackageIndex extends base.SummaryClass {
generated.readPackageIndex(buffer);
/**
+ * Each item of this list corresponds to a unique referenced element. It is
+ * the kind of the element.
+ */
+ @Id(6)
+ List<IndexElementKind> get elementKinds;
+
+ /**
* Each item of this list corresponds to a unique library URI with an element
* referenced in the [PackageIndex]. It is an index into [uris] list.
*/

Powered by Google App Engine
This is Rietveld 408576698