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

Unified Diff: pkg/compiler/lib/src/js_backend/no_such_method_registry.dart

Issue 2791993002: Fix dart2js warnings and add test to ensure it stays clean. (Closed)
Patch Set: Remove unused method. Created 3 years, 9 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/js_backend/no_such_method_registry.dart
diff --git a/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart b/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart
index 8c86f466743977d15af879c43e449efd3082abb0..e66ac266e369953b829538d2a0b09f6a0a2d636a 100644
--- a/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart
+++ b/pkg/compiler/lib/src/js_backend/no_such_method_registry.dart
@@ -4,7 +4,6 @@
import '../common.dart';
import '../common/names.dart' show Identifiers, Names, Selectors;
-import '../common_elements.dart';
import '../elements/elements.dart';
import '../elements/entities.dart';
import '../types/types.dart';
@@ -92,7 +91,9 @@ class NoSuchMethodRegistry {
/// that have a return type.
void onTypeInferenceComplete(GlobalTypeInferenceResults results) {
otherImpls.forEach((FunctionEntity element) {
- if (results.resultOfMember(element as MemberEntity).throwsAlways) {
+ if (results.resultOfMember(
+ // ignore: ARGUMENT_TYPE_NOT_ASSIGNABLE
+ element).throwsAlways) {
Johnni Winther 2017/04/03 12:07:33 Reinsert the cast and ignore the hint.
ahe 2017/04/03 12:25:07 Done.
complexNoReturnImpls.add(element);
} else {
complexReturningImpls.add(element);

Powered by Google App Engine
This is Rietveld 408576698