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

Side by Side Diff: dart/frog/frog_options.dart

Issue 10164004: Remove frogsh. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Rebased Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « dart/frog/frog.py ('k') | dart/frog/js_evaluator_node.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /** General options used by the compiler. */ 5 /** General options used by the compiler. */
6 FrogOptions options; 6 FrogOptions options;
7 7
8 /** Extracts options from command-line arguments. */ 8 /** Extracts options from command-line arguments. */
9 void parseOptions(String homedir, List<String> args, FileSystem files) { 9 void parseOptions(String homedir, List<String> args, FileSystem files) {
10 assert(options == null); 10 assert(options == null);
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 libDir = joinPaths(homedir, '/../lib'); 70 libDir = joinPaths(homedir, '/../lib');
71 } else { 71 } else {
72 world.error('Invalid configuration $config', null); 72 world.error('Invalid configuration $config', null);
73 throw('Invalid configuration'); 73 throw('Invalid configuration');
74 } 74 }
75 75
76 bool passedLibDir = false; 76 bool passedLibDir = false;
77 childArgs = []; 77 childArgs = [];
78 78
79 // Start from 2 to skip arguments representing the compiler command 79 // Start from 2 to skip arguments representing the compiler command
80 // (node/python followed by frogsh/frog.py). 80 // (python followed by frog.py).
81 loop: for (int i = 2; i < args.length; i++) { 81 loop: for (int i = 2; i < args.length; i++) {
82 var arg = args[i]; 82 var arg = args[i];
83 if (tryParseSimpleOption(arg)) continue; 83 if (tryParseSimpleOption(arg)) continue;
84 if (arg.endsWith('.dart')) { 84 if (arg.endsWith('.dart')) {
85 dartScript = arg; 85 dartScript = arg;
86 childArgs = args.getRange(i + 1, args.length - i - 1); 86 childArgs = args.getRange(i + 1, args.length - i - 1);
87 break loop; 87 break loop;
88 } else if (arg.startsWith('--out=')) { 88 } else if (arg.startsWith('--out=')) {
89 outfile = arg.substring('--out='.length); 89 outfile = arg.substring('--out='.length);
90 } else if (arg.startsWith('--libdir=')) { 90 } else if (arg.startsWith('--libdir=')) {
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 enableAsserts = true; 192 enableAsserts = true;
193 return true; 193 return true;
194 194
195 case '--unchecked': 195 case '--unchecked':
196 disableBoundsChecks = true; 196 disableBoundsChecks = true;
197 return true; 197 return true;
198 } 198 }
199 return false; 199 return false;
200 } 200 }
201 } 201 }
OLDNEW
« no previous file with comments | « dart/frog/frog.py ('k') | dart/frog/js_evaluator_node.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698