Index: sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart |
=================================================================== |
--- sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart (revision 15255) |
+++ sdk/lib/_internal/compiler/implementation/js_backend/emitter_no_eval.dart (working copy) |
@@ -133,17 +133,20 @@ |
buffer.add(' }'); |
} |
- void emitClassFields(ClassElement classElement, CodeBuffer buffer) { |
- /* Do nothing. */ |
+ void emitClassFields(ClassElement classElement, |
+ CodeBuffer buffer, |
+ bool emitEndingComma) { |
+ if (emitEndingComma) buffer.add(', '); |
} |
- void emitClassGettersSetters(ClassElement classElement, CodeBuffer buffer, |
- {bool omitLeadingComma: false}) { |
+ void emitClassGettersSetters(ClassElement classElement, |
+ CodeBuffer buffer, |
+ bool emitLeadingComma) { |
emitComma() { |
- if (!omitLeadingComma) { |
+ if (emitLeadingComma) { |
buffer.add(",\n "); |
} else { |
- omitLeadingComma = false; |
+ emitLeadingComma = true; |
} |
} |