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

Unified Diff: frog/leg/emitter.dart

Issue 9027002: Support factory methods. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 9 years 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/elements/elements.dart ('k') | frog/leg/lib/core.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/leg/emitter.dart
===================================================================
--- frog/leg/emitter.dart (revision 2754)
+++ frog/leg/emitter.dart (working copy)
@@ -42,7 +42,7 @@
StringBuffer buffer) {
assert(member.isInstanceMember());
if (member.kind === ElementKind.FUNCTION
- || member.kind === ElementKind.CONSTRUCTOR_BODY) {
+ || member.kind === ElementKind.GENERATIVE_CONSTRUCTOR_BODY) {
String codeBlock = compiler.universe.generatedCode[member];
if (codeBlock !== null) {
buffer.add('$prototype.${namer.getName(member)} = $codeBlock;\n');
« no previous file with comments | « frog/leg/elements/elements.dart ('k') | frog/leg/lib/core.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698