| 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')));
|
| }
|
|
|
|
|