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

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

Issue 2941033002: Finish strong mode cleaning of dart2js. (Closed)
Patch Set: Add bug numbers and address comments. Created 3 years, 6 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/resolution/no_such_method_resolver.dart
diff --git a/pkg/compiler/lib/src/resolution/no_such_method_resolver.dart b/pkg/compiler/lib/src/resolution/no_such_method_resolver.dart
index 49f3353eff3df74309a00b132805a2af14a81609..5e4955f0fa21f652ef01c46b25548e175251e94a 100644
--- a/pkg/compiler/lib/src/resolution/no_such_method_resolver.dart
+++ b/pkg/compiler/lib/src/resolution/no_such_method_resolver.dart
@@ -51,9 +51,11 @@ class ResolutionNoSuchMethodResolver implements NoSuchMethodResolver {
arg is Send &&
arg.argumentsNode == null &&
arg.receiver == null &&
- arg.selector is Identifier &&
- arg.selector.source == param) {
- return true;
+ arg.selector is Identifier) {
+ Identifier selector = arg.selector;
+ if (selector.source == param) {
+ return true;
+ }
}
}
return false;
« no previous file with comments | « pkg/compiler/lib/src/resolution/constructors.dart ('k') | pkg/compiler/lib/src/resolution/type_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698