| OLD | NEW |
| 1 // Copyright (c) 2015, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 library old_servicec.compiler; | 5 library old_servicec.compiler; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 import 'src/emitter.dart'; | 9 import 'src/emitter.dart'; |
| 10 import 'src/parser.dart'; | 10 import 'src/parser.dart'; |
| 11 import 'src/pretty_printer.dart'; | 11 import 'src/pretty_printer.dart'; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 42 | 42 |
| 43 void dump(String path, Unit unit) { | 43 void dump(String path, Unit unit) { |
| 44 String banner = "Parsed IDL for $path"; | 44 String banner = "Parsed IDL for $path"; |
| 45 print(banner); | 45 print(banner); |
| 46 print('-' * banner.length); | 46 print('-' * banner.length); |
| 47 var printer = new PrettyPrinter(); | 47 var printer = new PrettyPrinter(); |
| 48 printer.visit(unit); | 48 printer.visit(unit); |
| 49 String printed = printer.buffer.toString().replaceAll('\n', '\n '); | 49 String printed = printer.buffer.toString().replaceAll('\n', '\n '); |
| 50 print(' $printed'); | 50 print(' $printed'); |
| 51 } | 51 } |
| OLD | NEW |