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

Unified Diff: pkg/compiler/lib/src/kernel/no_such_method_resolver.dart

Issue 2898403002: Use failedAt in more places (Closed)
Patch Set: Created 3 years, 7 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/kernel/no_such_method_resolver.dart
diff --git a/pkg/compiler/lib/src/kernel/no_such_method_resolver.dart b/pkg/compiler/lib/src/kernel/no_such_method_resolver.dart
index af80ffcf3fa3d4a32196a2e53d2cbac2ee840959..eb7394438fee9fa1314276ffabc9dd2456a675db 100644
--- a/pkg/compiler/lib/src/kernel/no_such_method_resolver.dart
+++ b/pkg/compiler/lib/src/kernel/no_such_method_resolver.dart
@@ -84,8 +84,8 @@ class KernelNoSuchMethodResolver implements NoSuchMethodResolver {
}
FunctionEntity function = _elementEnvironment.lookupClassMember(
_commonElements.objectClass, Identifiers.noSuchMethod_);
- assert(invariant(method, function != null,
- message: "No super noSuchMethod found for $method."));
+ assert(function != null,
+ failedAt(method, "No super noSuchMethod found for $method."));
return function;
}
}

Powered by Google App Engine
This is Rietveld 408576698