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

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

Issue 1575143002: Fix referencing prefixed types from parts. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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/summarize_elements.dart
diff --git a/pkg/analyzer/lib/src/summary/summarize_elements.dart b/pkg/analyzer/lib/src/summary/summarize_elements.dart
index b4b858cc96d87e7c8c1294ff7e53a76183b77ed8..80f846e6382d6df059ca5ef8c1768907c4f43d8f 100644
--- a/pkg/analyzer/lib/src/summary/summarize_elements.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart
@@ -674,7 +674,6 @@ class _LibrarySerializer {
if (element is TypeParameterizedElement) {
numTypeParameters = element.typeParameters.length;
}
- int index = unlinkedReferences.length;
// Figure out a prefix that may be used to refer to the given type.
// TODO(paulberry): to avoid subtle relinking inconsistencies we
// should use the actual prefix from the AST (a given type may be
@@ -685,6 +684,7 @@ class _LibrarySerializer {
if (prefix != null) {
prefixReference = serializePrefix(prefix);
}
+ int index = unlinkedReferences.length;
unlinkedReferences.add(encodeUnlinkedReference(
name: element.name, prefixReference: prefixReference));
prelinkedReferences.add(encodePrelinkedReference(
« no previous file with comments | « no previous file | pkg/analyzer/test/src/summary/summary_test.dart » ('j') | pkg/analyzer/test/src/summary/summary_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698