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

Unified Diff: pkg/analyzer/test/src/summary/summary_test.dart

Issue 1528083002: Reserve element 0 in the references table for `dynamic`. (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/lib/src/summary/summarize_elements.dart ('k') | pkg/analyzer/tool/summary/idl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/summary_test.dart
diff --git a/pkg/analyzer/test/src/summary/summary_test.dart b/pkg/analyzer/test/src/summary/summary_test.dart
index c28ae72e9460f68e1091361103abf01893e9d7db..3646f3294de7f271697df8547ac4a55548e8e5cb 100644
--- a/pkg/analyzer/test/src/summary/summary_test.dart
+++ b/pkg/analyzer/test/src/summary/summary_test.dart
@@ -228,6 +228,11 @@ abstract class SummaryTest {
int index = typeRef.reference;
UnlinkedReference reference = sourceUnit.unlinked.references[index];
PrelinkedReference referenceResolution = sourceUnit.references[index];
+ if (index == 0) {
+ // Index 0 is reserved for "dynamic".
+ expect(reference.name, isEmpty);
+ expect(reference.prefix, 0);
+ }
if (absoluteUri == null) {
expect(referenceResolution.dependency, 0);
} else {
« no previous file with comments | « pkg/analyzer/lib/src/summary/summarize_elements.dart ('k') | pkg/analyzer/tool/summary/idl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698