Chromium Code Reviews| Index: sdk/lib/_internal/compiler/implementation/tree/unparser.dart |
| diff --git a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart |
| index 632741ccd22fdd9a492d18186f9b6c07a56e5d4c..5dba795ed6f13e5913109ed45c332a07afced17d 100644 |
| --- a/sdk/lib/_internal/compiler/implementation/tree/unparser.dart |
| +++ b/sdk/lib/_internal/compiler/implementation/tree/unparser.dart |
| @@ -73,6 +73,13 @@ class Unparser implements Visitor { |
| sb.write('}'); |
| } |
| + visitEnum(Enum node) { |
| + sb.write('enum '); |
| + visit(node.name); |
| + sb.write(' '); |
|
floitsch
2014/11/04 14:06:51
why don't you need to write the "{" and "}"?
Lasse Reichstein Nielsen
2014/11/06 13:24:51
The NodeList knows about delimiters, '{', '}' and
|
| + visit(node.names); |
| + } |
| + |
| visitClassNode(ClassNode node) { |
| unparseClassWithBody(node, node.body.nodes); |
| } |