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

Side by Side Diff: lib/compiler/implementation/dart2js.dart

Issue 10332196: Start working on unparse validation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 7 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
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 #library('dart2js'); 5 #library('dart2js');
6 6
7 #import('dart:io'); 7 #import('dart:io');
8 #import('dart:uri'); 8 #import('dart:uri');
9 #import('dart:utf'); 9 #import('dart:utf');
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 new OptionHandler('--library-root=.+', (String argument) { 70 new OptionHandler('--library-root=.+', (String argument) {
71 String path = nativeToUriPath(extractParameter(argument)); 71 String path = nativeToUriPath(extractParameter(argument));
72 if (!path.endsWith("/")) path = "$path/"; 72 if (!path.endsWith("/")) path = "$path/";
73 libraryRoot = cwd.resolve(path); 73 libraryRoot = cwd.resolve(path);
74 }), 74 }),
75 new OptionHandler('--out=.+|-o.+', (String argument) { 75 new OptionHandler('--out=.+|-o.+', (String argument) {
76 explicitOut = true; 76 explicitOut = true;
77 out = cwd.resolve(nativeToUriPath(extractParameter(argument))); 77 out = cwd.resolve(nativeToUriPath(extractParameter(argument)));
78 }), 78 }),
79 new OptionHandler('--allow-mock-compilation', passThrough), 79 new OptionHandler('--allow-mock-compilation', passThrough),
80 new OptionHandler('--unparse-validation', passThrough),
80 new OptionHandler('--no-colors', (_) => colors.enabled = false), 81 new OptionHandler('--no-colors', (_) => colors.enabled = false),
81 new OptionHandler('--enable[_-]checked[_-]mode|--checked|-c', 82 new OptionHandler('--enable[_-]checked[_-]mode|--checked|-c',
82 (_) => passThrough('--enable-checked-mode')), 83 (_) => passThrough('--enable-checked-mode')),
83 new OptionHandler(@'--help|-h|/\?|/h', (_) => wantHelp = true), 84 new OptionHandler(@'--help|-h|/\?|/h', (_) => wantHelp = true),
84 // The following two options must come last. 85 // The following two options must come last.
85 new OptionHandler('-.*', (String argument) { 86 new OptionHandler('-.*', (String argument) {
86 helpAndFail('Error: Unknown option "$argument".'); 87 helpAndFail('Error: Unknown option "$argument".');
87 }), 88 }),
88 new OptionHandler('.*', (String argument) { 89 new OptionHandler('.*', (String argument) {
89 arguments.add(nativeToUriPath(argument)); 90 arguments.add(nativeToUriPath(argument));
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 } catch (var ignored) { 271 } catch (var ignored) {
271 print('Internal error: error while printing exception'); 272 print('Internal error: error while printing exception');
272 } 273 }
273 try { 274 try {
274 print(trace); 275 print(trace);
275 } finally { 276 } finally {
276 exit(253); // 253 is recognized as a crash by our test scripts. 277 exit(253); // 253 is recognized as a crash by our test scripts.
277 } 278 }
278 } 279 }
279 } 280 }
OLDNEW
« lib/compiler/implementation/compiler.dart ('K') | « lib/compiler/implementation/compiler.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698