| Index: pkg/compiler/samples/compile_loop/compile_loop.dart
|
| diff --git a/pkg/compiler/samples/compile_loop/compile_loop.dart b/pkg/compiler/samples/compile_loop/compile_loop.dart
|
| index 9a2e44eb991e638e415713cf894581fedf8c3a8a..097d04692330b42d5992699b13d4eb43bca590d9 100644
|
| --- a/pkg/compiler/samples/compile_loop/compile_loop.dart
|
| +++ b/pkg/compiler/samples/compile_loop/compile_loop.dart
|
| @@ -28,27 +28,24 @@ Future<String> compile(source) {
|
| // TODO(ahe): Use new Future.error.
|
| throw new Exception('Error: Cannot read: $uri');
|
| }
|
| - void handler(Uri uri, int begin, int end,
|
| - String message, compiler.Diagnostic kind) {
|
| + void handler(
|
| + Uri uri, int begin, int end, String message, compiler.Diagnostic kind) {
|
| // TODO(ahe): Remove dart:io import from
|
| // ../../lib/src/source_file_provider.dart and use
|
| // FormattingDiagnosticHandler instead.
|
| - print({ 'uri': '$uri',
|
| - 'begin': begin,
|
| - 'end': end,
|
| - 'message': message,
|
| - 'kind': kind.name });
|
| + print({
|
| + 'uri': '$uri',
|
| + 'begin': begin,
|
| + 'end': end,
|
| + 'message': message,
|
| + 'kind': kind.name
|
| + });
|
| if (kind == compiler.Diagnostic.ERROR) {
|
| throw new Exception('Unexpected error occurred.');
|
| }
|
| }
|
| - return compiler.compile(
|
| - Uri.parse('memory:/main.dart'),
|
| - Uri.parse('sdk:/sdk/'),
|
| - null,
|
| - inputProvider,
|
| - handler,
|
| - []);
|
| + return compiler.compile(Uri.parse('memory:/main.dart'),
|
| + Uri.parse('sdk:/sdk/'), null, inputProvider, handler, []);
|
| }
|
|
|
| int iterations = 10;
|
|
|