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

Unified Diff: frog/leg/ssa/codegen.dart

Issue 9619009: A local may be an unnamed closure. Make sure we emit a name for them. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
« no previous file with comments | « frog/leg/scanner/keyword.dart ('k') | tests/language/src/UnnamedClosureTest.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/ssa/codegen.dart
===================================================================
--- frog/leg/ssa/codegen.dart (revision 5087)
+++ frog/leg/ssa/codegen.dart (working copy)
@@ -186,7 +186,7 @@
if (name !== null) return name;
String prefix;
- if (element !== null) {
+ if (element !== null && !element.name.isEmpty()) {
prefix = element.name.slowToString();
} else {
prefix = 'v';
@@ -671,7 +671,7 @@
} else {
buffer.add(compiler.namer.CURRENT_ISOLATE);
buffer.add(".");
- buffer.add(name);
+ buffer.add(name);
}
}
« no previous file with comments | « frog/leg/scanner/keyword.dart ('k') | tests/language/src/UnnamedClosureTest.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698