| Index: pkg/compiler/samples/darttags/darttags.dart
|
| diff --git a/pkg/compiler/samples/darttags/darttags.dart b/pkg/compiler/samples/darttags/darttags.dart
|
| index 84b7562fc6c92c1f2470fe44ea1e0e3120f729dc..0333c690623e0d5483a9cb8a75eec5e895b75f33 100644
|
| --- a/pkg/compiler/samples/darttags/darttags.dart
|
| +++ b/pkg/compiler/samples/darttags/darttags.dart
|
| @@ -35,10 +35,8 @@ import 'dart:mirrors';
|
| import 'package:sdk_library_metadata/libraries.dart'
|
| show libraries, LibraryInfo;
|
|
|
| -import 'package:compiler/src/mirrors/analyze.dart'
|
| - show analyze;
|
| -import 'package:compiler/src/mirrors/dart2js_mirrors.dart'
|
| - show BackDoor;
|
| +import 'package:compiler/src/mirrors/analyze.dart' show analyze;
|
| +import 'package:compiler/src/mirrors/dart2js_mirrors.dart' show BackDoor;
|
| import 'package:compiler/src/mirrors/mirrors_util.dart' show nameOf;
|
|
|
| import 'package:compiler/src/filenames.dart';
|
| @@ -59,15 +57,12 @@ RandomAccessFile output;
|
| Uri outputUri;
|
|
|
| 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);
|
|
|
| List<Uri> uris = <Uri>[];
|
|
|
| @@ -87,8 +82,8 @@ main(List<String> arguments) {
|
| // Prepend "dart:" to the names.
|
| uris.addAll(names.map((String name) => Uri.parse('dart:$name')));
|
|
|
| - Uri platformConfigUri = myLocation.resolve(SDK_ROOT)
|
| - .resolve("lib/dart2js_shared_sdk");
|
| + Uri platformConfigUri =
|
| + myLocation.resolve(SDK_ROOT).resolve("lib/dart2js_shared_sdk");
|
| Uri packageRoot = Uri.base.resolve(Platform.packageRoot);
|
|
|
| analyze(uris, platformConfigUri, packageRoot, handler.provider, handler)
|
| @@ -189,8 +184,7 @@ class Definition {
|
| }
|
|
|
| void writeOn(StringBuffer buffer, String tagname) {
|
| - buffer.write(
|
| - '${tag_definition_text}\x7f${tagname}'
|
| + buffer.write('${tag_definition_text}\x7f${tagname}'
|
| '\x01${line_number},${byte_offset}\n');
|
| }
|
| }
|
|
|