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

Side by Side Diff: pkg/compiler/lib/src/dart2js.dart

Issue 1863053003: Adds support for --generic-method-syntax (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Rebased up to current github master 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/options.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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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.cmdline; 5 library dart2js.cmdline;
6 6
7 import 'dart:async' show Future, EventSink; 7 import 'dart:async' show Future, EventSink;
8 import 'dart:convert' show UTF8, LineSplitter; 8 import 'dart:convert' show UTF8, LineSplitter;
9 import 'dart:io' 9 import 'dart:io'
10 show 10 show
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 setOutputType), 320 setOutputType),
321 new OptionHandler(Flags.useCpsIr, passThrough), 321 new OptionHandler(Flags.useCpsIr, passThrough),
322 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough), 322 new OptionHandler(Flags.noFrequencyBasedMinification, passThrough),
323 new OptionHandler(Flags.verbose, setVerbose), 323 new OptionHandler(Flags.verbose, setVerbose),
324 new OptionHandler(Flags.version, (_) => wantVersion = true), 324 new OptionHandler(Flags.version, (_) => wantVersion = true),
325 new OptionHandler('--library-root=.+', setLibraryRoot), 325 new OptionHandler('--library-root=.+', setLibraryRoot),
326 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true), 326 new OptionHandler('--out=.+|-o.*', setOutput, multipleArguments: true),
327 new OptionHandler(Flags.allowMockCompilation, passThrough), 327 new OptionHandler(Flags.allowMockCompilation, passThrough),
328 new OptionHandler(Flags.fastStartup, passThrough), 328 new OptionHandler(Flags.fastStartup, passThrough),
329 new OptionHandler(Flags.conditionalDirectives, passThrough), 329 new OptionHandler(Flags.conditionalDirectives, passThrough),
330 new OptionHandler(Flags.genericMethodSyntax, passThrough),
330 new OptionHandler('${Flags.minify}|-m', implyCompilation), 331 new OptionHandler('${Flags.minify}|-m', implyCompilation),
331 new OptionHandler(Flags.preserveUris, passThrough), 332 new OptionHandler(Flags.preserveUris, passThrough),
332 new OptionHandler('--force-strip=.*', setStrip), 333 new OptionHandler('--force-strip=.*', setStrip),
333 new OptionHandler(Flags.disableDiagnosticColors, 334 new OptionHandler(Flags.disableDiagnosticColors,
334 (_) => diagnosticHandler.enableColors = false), 335 (_) => diagnosticHandler.enableColors = false),
335 new OptionHandler(Flags.enableDiagnosticColors, 336 new OptionHandler(Flags.enableDiagnosticColors,
336 (_) => diagnosticHandler.enableColors = true), 337 (_) => diagnosticHandler.enableColors = true),
337 new OptionHandler('--enable[_-]checked[_-]mode|--checked', 338 new OptionHandler('--enable[_-]checked[_-]mode|--checked',
338 (_) => setCheckedMode(Flags.enableCheckedMode)), 339 (_) => setCheckedMode(Flags.enableCheckedMode)),
339 new OptionHandler(Flags.trustTypeAnnotations, 340 new OptionHandler(Flags.trustTypeAnnotations,
(...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
781 } else if (exitCode == 253) { 782 } else if (exitCode == 253) {
782 print(">>> TEST CRASH"); 783 print(">>> TEST CRASH");
783 } else { 784 } else {
784 print(">>> TEST FAIL"); 785 print(">>> TEST FAIL");
785 } 786 }
786 stderr.writeln(">>> EOF STDERR"); 787 stderr.writeln(">>> EOF STDERR");
787 subscription.resume(); 788 subscription.resume();
788 }); 789 });
789 }); 790 });
790 } 791 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/commandline_options.dart ('k') | pkg/compiler/lib/src/options.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698