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

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

Issue 2815383003: Finish cleaning up analyzer warnings (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/js/placeholder_safety.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e0a5d03dc1445b342cf50daf1374bd81825837e6..68075b1a432c4227269f9eb8dda950735cc8c514 100644
--- a/pkg/compiler/lib/src/serialization/equivalence.dart
+++ b/pkg/compiler/lib/src/serialization/equivalence.dart
@@ -252,6 +252,7 @@ bool areAccessSemanticsEquivalent(AccessSemantics a, AccessSemantics b) {
compoundAccess1.getter, compoundAccess2.getter) &&
areElementsEquivalent(compoundAccess1.setter, compoundAccess2.setter);
case AccessKind.CONSTANT:
+ default:
throw new UnsupportedError('Unsupported access kind: ${a.kind}');
}
}
@@ -331,6 +332,7 @@ bool areNewStructuresEquivalent(NewStructure a, NewStructure b) {
return ad.constantInvokeKind == bd.constantInvokeKind &&
areConstantsEquivalent(ad.constant, bd.constant);
case NewStructureKind.LATE_CONST:
+ default:
throw new UnsupportedError('Unsupported NewStructure kind ${a.kind}.');
}
}
« no previous file with comments | « pkg/compiler/lib/src/js/placeholder_safety.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698