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

Unified Diff: sdk/lib/_internal/compiler/samples/darttags/darttags.dart

Issue 50633004: Remove uses of dart:io Options in dart2js and dartdoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Use arguments instead of args. Created 7 years, 2 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
Index: sdk/lib/_internal/compiler/samples/darttags/darttags.dart
diff --git a/sdk/lib/_internal/compiler/samples/darttags/darttags.dart b/sdk/lib/_internal/compiler/samples/darttags/darttags.dart
index 54e8d7bf32ebde080c7ef26e48fe203a06e7ff62..4a3cd47a12dfd5af9de8222f91eef24db83bd298 100644
--- a/sdk/lib/_internal/compiler/samples/darttags/darttags.dart
+++ b/sdk/lib/_internal/compiler/samples/darttags/darttags.dart
@@ -51,20 +51,16 @@ var handler;
RandomAccessFile output;
Uri outputUri;
-main() {
- mainWithOptions(new Options());
-}
-
-mainWithOptions(Options options) {
+main(List<String> arguments) {
handler = new FormattingDiagnosticHandler()
..throwOnError = true;
outputUri =
- handler.provider.cwd.resolve(nativeToUriPath(options.arguments.first));
- output = new File(options.arguments.first).openSync(mode: FileMode.WRITE);
+ handler.provider.cwd.resolve(nativeToUriPath(arguments.first));
+ output = new File(arguments.first).openSync(mode: FileMode.WRITE);
Uri myLocation =
- handler.provider.cwd.resolve(nativeToUriPath(options.script));
+ handler.provider.cwd.resolve(nativeToUriPath(Platform.script));
// Get the names of public dart2js libraries.
Iterable<String> names = LIBRARIES.keys.where(isPublicDart2jsLibrary);
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/dart2js.dart ('k') | sdk/lib/_internal/compiler/samples/jsonify/jsonify.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698