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

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

Issue 2957203002: Index subtypes with supertypes, and names of members they declare. (Closed)
Patch Set: Created 3 years, 6 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/test/src/dart/analysis/index_test.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 901c5bad796a718b1c29cffd249f768531496465..436ad02157c7b583838bec99d0c715da342e361f 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -129,6 +129,31 @@ abstract class AnalysisDriverResolvedUnit extends base.SummaryClass {
}
/**
+ * Information about a subtype of one or more classes.
+ */
+abstract class AnalysisDriverSubtype extends base.SummaryClass {
+ /**
+ * The names of defined class members.
+ * The list is sorted in ascending order.
+ */
+ @Id(2)
+ List<String> get members;
+
+ /**
+ * The name of the class.
+ */
+ @Id(0)
+ String get name;
+
+ /**
+ * The identifiers of the direct supertypes.
+ * The list is sorted in ascending order.
+ */
+ @Id(1)
+ List<String> get supertypes;
+}
+
+/**
* Information about an error in a resolved unit.
*/
abstract class AnalysisDriverUnitError extends base.SummaryClass {
@@ -228,6 +253,12 @@ abstract class AnalysisDriverUnitIndex extends base.SummaryClass {
List<String> get strings;
/**
+ * The list of classes declared in the unit.
+ */
+ @Id(18)
+ List<AnalysisDriverSubtype> get subtypes;
+
+ /**
* Each item of this list corresponds to the library URI of a unique library
* specific unit referenced in the index. It is an index into [strings] list.
*/
« no previous file with comments | « pkg/analyzer/lib/src/summary/format.fbs ('k') | pkg/analyzer/test/src/dart/analysis/index_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698