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

Unified Diff: pkg/compiler/samples/jsonify/jsonify.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/samples/darttags/darttags.dart ('k') | pkg/compiler/tool/track_memory.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/samples/jsonify/jsonify.dart
diff --git a/pkg/compiler/samples/jsonify/jsonify.dart b/pkg/compiler/samples/jsonify/jsonify.dart
index 6e1e7288f5d67de9bcac8ce86caa19b9c8d57e6f..db8020d328f72fc695de7d93237d6085442cc7dc 100644
--- a/pkg/compiler/samples/jsonify/jsonify.dart
+++ b/pkg/compiler/samples/jsonify/jsonify.dart
@@ -11,10 +11,8 @@ import 'dart:mirrors';
import 'package:sdk_library_metadata/libraries.dart'
show libraries, LibraryInfo;
-import '../../lib/src/mirrors/analyze.dart'
- show analyze;
-import '../../lib/src/mirrors/dart2js_mirrors.dart'
- show BackDoor;
+import '../../lib/src/mirrors/analyze.dart' show analyze;
+import '../../lib/src/mirrors/dart2js_mirrors.dart' show BackDoor;
import '../../lib/src/filenames.dart';
import '../../lib/src/source_file_provider.dart';
@@ -36,18 +34,14 @@ const bool outputJson =
const bool.fromEnvironment('outputJson', defaultValue: false);
main(List<String> arguments) {
- handler = new FormattingDiagnosticHandler()
- ..throwOnError = true;
+ handler = new FormattingDiagnosticHandler()..throwOnError = true;
- outputUri =
- handler.provider.cwd.resolve(nativeToUriPath(arguments.first));
+ outputUri = handler.provider.cwd.resolve(nativeToUriPath(arguments.first));
output = new File(arguments.first).openSync(mode: FileMode.WRITE);
- Uri myLocation =
- handler.provider.cwd.resolveUri(Platform.script);
+ Uri myLocation = handler.provider.cwd.resolveUri(Platform.script);
- Uri packageRoot =
- handler.provider.cwd.resolve(Platform.packageRoot);
+ Uri packageRoot = handler.provider.cwd.resolve(Platform.packageRoot);
Uri libraryRoot = myLocation.resolve(SDK_ROOT);
@@ -87,9 +81,11 @@ jsonify(MirrorSystem mirrors) {
}
});
- for (String filename in ["dart_client.platform",
- "dart_server.platform",
- "dart_shared.platform"]) {
+ for (String filename in [
+ "dart_client.platform",
+ "dart_server.platform",
+ "dart_shared.platform"
+ ]) {
futures.add(mapUri(sdkRoot.resolve('sdk/lib/$filename')));
}
« no previous file with comments | « pkg/compiler/samples/darttags/darttags.dart ('k') | pkg/compiler/tool/track_memory.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698