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

Unified Diff: pkg/compiler/lib/src/serialization/equivalence.dart

Issue 2125793003: Serialize WarnOnUseElement (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 5 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/compiler/lib/src/serialization/equivalence.dart
diff --git a/pkg/compiler/lib/src/serialization/equivalence.dart b/pkg/compiler/lib/src/serialization/equivalence.dart
index 6f86c3c0fe84f834c85d838739739ce7e35a39e4..6cb175cc6d9227bdce9430d57531fb3b4ca226c4 100644
--- a/pkg/compiler/lib/src/serialization/equivalence.dart
+++ b/pkg/compiler/lib/src/serialization/equivalence.dart
@@ -523,6 +523,13 @@ class ElementIdentityEquivalence extends BaseElementVisitor<bool, Element> {
return strategy.test(element1, element2, 'messageKind',
element1.messageKind, element2.messageKind);
}
+
+ @override
+ bool visitWarnOnUseElement(
+ WarnOnUseElement element1, WarnOnUseElement element2) {
+ return strategy.testElements(element1, element2, 'wrappedElement',
+ element1.wrappedElement, element2.wrappedElement);
+ }
}
/// Visitor that checks for equivalence of [DartType]s.
« no previous file with comments | « pkg/compiler/lib/src/serialization/element_serialization.dart ('k') | pkg/compiler/lib/src/serialization/keys.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698