Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(561)

Unified Diff: pkg/compiler/samples/compile_loop/compile_loop.dart

Issue 1859343004: dartfmt pkg/compiler (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | pkg/compiler/samples/darttags/darttags.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « pkg/compiler/lib/src/world.dart ('k') | pkg/compiler/samples/darttags/darttags.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698