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

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: 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') | frog/leg/emitter.dart » ('J')
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 f00c94df144c6c58f4dc90f79e0d9772e83be118..eef8969940cb33643086cdd1dfbca5f6c4fbd613 100644
--- a/frog/leg/compiler.dart
+++ b/frog/leg/compiler.dart
@@ -192,6 +192,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') | frog/leg/emitter.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698