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

Unified Diff: pkg/compiler/samples/darttags/darttags.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/compile_loop/compile_loop.dart ('k') | pkg/compiler/samples/jsonify/jsonify.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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');
}
}
« no previous file with comments | « pkg/compiler/samples/compile_loop/compile_loop.dart ('k') | pkg/compiler/samples/jsonify/jsonify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698