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

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

Issue 1753433002: Record names references in index. (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 ca039d02ccabf7c3c21ba480f2bff596bda1be5e..46e9172a1eff1a4deb887d6387fe63f098a2f4de 100644
--- a/pkg/analyzer/lib/src/summary/idl.dart
+++ b/pkg/analyzer/lib/src/summary/idl.dart
@@ -542,7 +542,8 @@ abstract class PackageIndex extends base.SummaryClass {
/**
* Each item of this list corresponds to the library URI of a unique library
- * specific unit referenced in the [PackageIndex].
+ * specific unit referenced in the [PackageIndex]. It is an index into
+ * [strings] list.
*/
@Id(2)
List<int> get unitLibraryUris;
@@ -555,7 +556,8 @@ abstract class PackageIndex extends base.SummaryClass {
/**
* Each item of this list corresponds to the unit URI of a unique library
- * specific unit referenced in the [PackageIndex].
+ * specific unit referenced in the [PackageIndex]. It is an index into
+ * [strings] list.
*/
@Id(3)
List<int> get unitUnitUris;
@@ -688,6 +690,27 @@ abstract class UnitIndex extends base.SummaryClass {
*/
@Id(3)
List<int> get usedElements;
+
+ /**
+ * Each item of this list is the kind of the name usage.
+ */
+ @Id(10)
+ List<IndexRelationKind> get usedNameKinds;
+
+ /**
+ * Each item of this list is the offset of the name usage relative to the
+ * beginning of the file.
+ */
+ @Id(9)
+ List<int> get usedNameOffsets;
+
+ /**
+ * Each item of this list is the index into [PackageIndex.strings] for a
+ * used name. The list is sorted in ascending order, so that the client can
+ * quickly find name uses in this [UnitIndex].
+ */
+ @Id(8)
+ List<int> get usedNames;
}
/**
« 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