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

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

Issue 1713083002: Fix inconsistency with LinkedReference.numTypeParameters (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
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 0dc271f864ab61544fc2ad4b57296835768cca27..15538dfec7a14d62c19dd241c4d938d9863874ac 100644
--- a/pkg/analyzer/lib/src/summary/summarize_elements.dart
+++ b/pkg/analyzer/lib/src/summary/summarize_elements.dart
@@ -1037,8 +1037,7 @@ class _CompilationUnitSerializer {
linkedReference.containingReference =
_getElementReferenceId(enclosingElement, linked: linked);
if (enclosingElement is ClassElement) {
- linkedReference.numTypeParameters =
- enclosingElement.typeParameters.length;
+ // Nothing to do.
} else if (enclosingElement is ExecutableElement) {
if (element is FunctionElement) {
assert(enclosingElement.functions.contains(element));
« no previous file with comments | « pkg/analyzer/lib/src/summary/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698