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

Unified Diff: frog/leg/compiler.dart

Issue 9415005: Support implicitly bound closures (aka. tear-off closures). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 10 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 | « no previous file | frog/leg/emitter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/compiler.dart
diff --git a/frog/leg/compiler.dart b/frog/leg/compiler.dart
index 584742b17d43be38cb4074e6fed9d9b0b6004b98..35ff15a87e2a604df43fd462f12ccc874b5287bb 100644
--- a/frog/leg/compiler.dart
+++ b/frog/leg/compiler.dart
@@ -206,6 +206,11 @@ class Compiler implements DiagnosticListener {
}
}
}
+ // If there is a property access with the same name as a method we
+ // need to emit the method.
+ if (universe.invokedGetters.contains(member.name)) {
+ addToWorklist(member);
+ }
} else if (member.kind == ElementKind.GETTER) {
if (universe.invokedGetters.contains(member.name)) {
addToWorklist(member);
« no previous file with comments | « no previous file | frog/leg/emitter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698