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

Unified Diff: pkg/analyzer/tool/summary/idl.dart

Issue 1528113002: Merge the prefix and references tables. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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/test/src/summary/summary_test.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/tool/summary/idl.dart
diff --git a/pkg/analyzer/tool/summary/idl.dart b/pkg/analyzer/tool/summary/idl.dart
index b2cafdd983f48241869d83fe2b541c3b7a09c421..1debbbbc20f7c1f57afbfb0b2d4ff92cbc34e803 100644
--- a/pkg/analyzer/tool/summary/idl.dart
+++ b/pkg/analyzer/tool/summary/idl.dart
@@ -87,11 +87,6 @@ class PrelinkedLibrary {
List<PrelinkedUnit> units;
/**
- * The unlinked library summary.
- */
- UnlinkedLibrary unlinked;
-
- /**
* The libraries that this library depends on (either via an explicit import
* statement or via the implicit dependencies on `dart:core` and
* `dart:async`). The first element of this array is a pseudo-dependency
@@ -158,6 +153,11 @@ enum PrelinkedReferenceKind {
other,
/**
+ * The entity is a prefix.
+ */
+ prefix,
+
+ /**
* The entity being referred to does not exist.
*/
unresolved
@@ -410,12 +410,12 @@ class UnlinkedImport {
int offset;
/**
- * Index into [UnlinkedLibrary.prefixes] of the prefix declared by this
+ * Index into [UnlinkedUnit.references] of the prefix declared by this
* import declaration, or zero if this import declaration declares no prefix.
*
* Note that multiple imports can declare the same prefix.
*/
- int prefix;
+ int prefixReference;
/**
* Combinators contained in this import declaration.
@@ -434,17 +434,6 @@ class UnlinkedImport {
}
/**
- * Unlinked summary of an entire library.
- */
-class UnlinkedLibrary {
- /**
- * Prefixes introduced by import declarations. The first element in this
- * array is a pseudo-prefix used by references made with no prefix.
- */
- List<UnlinkedPrefix> prefixes;
-}
-
-/**
* Unlinked summary information about a function parameter.
*/
class UnlinkedParam {
@@ -520,14 +509,6 @@ class UnlinkedPart {
String uri;
}
-class UnlinkedPrefix {
- /**
- * The name of the prefix, or the empty string in the case of the
- * pseudo-prefix which represents "no prefix".
- */
- String name;
-}
-
/**
* Unlinked summary information about a name referred to in one library that
* might be defined in another.
@@ -540,10 +521,10 @@ class UnlinkedReference {
String name;
/**
- * Prefix used to refer to the entity. This is an index into
- * [UnlinkedLibrary.prefixes].
+ * Prefix used to refer to the entity, or zero if no prefix is used. This is
+ * an index into [UnlinkedUnit.references].
*/
- int prefix;
+ int prefixReference;
}
/**
« no previous file with comments | « pkg/analyzer/test/src/summary/summary_test.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698