| Index: lib/compiler/implementation/dart_backend/backend.dart
|
| diff --git a/lib/compiler/implementation/dart_backend/backend.dart b/lib/compiler/implementation/dart_backend/backend.dart
|
| index 77fb893676bd15ea9ac260f85f8aee99029e312c..f713e86a6d2034a878babd73c785f8787097619e 100644
|
| --- a/lib/compiler/implementation/dart_backend/backend.dart
|
| +++ b/lib/compiler/implementation/dart_backend/backend.dart
|
| @@ -43,9 +43,14 @@ class DartBackend extends Backend {
|
| }
|
|
|
| try {
|
| + StringBuffer sb = new StringBuffer();
|
| resolvedElements.forEach((element, treeElements) {
|
| - bailout('I can do nothing right now.');
|
| + if (!element.isTopLevel()) {
|
| + bailout('Cannot process non top-level $element');
|
| + }
|
| + sb.add(element.parseNode(compiler).unparse());
|
| });
|
| + compiler.assembledCode = sb.toString();
|
| } catch (BailoutException e) {
|
| compiler.assembledCode = '''
|
| main() {
|
|
|