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

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

Issue 588183002: Emit warning on import of dart:mirrors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments Created 6 years, 1 month 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) 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' 7 import 'dart:async'
8 show Future, EventSink; 8 show Future, EventSink;
9 import 'dart:convert' show UTF8, LineSplitter; 9 import 'dart:convert' show UTF8, LineSplitter;
10 import 'dart:io' 10 import 'dart:io'
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 new OptionHandler('--analyze-signatures-only', setAnalyzeOnly), 325 new OptionHandler('--analyze-signatures-only', setAnalyzeOnly),
326 new OptionHandler('--disable-native-live-type-analysis', passThrough), 326 new OptionHandler('--disable-native-live-type-analysis', passThrough),
327 new OptionHandler('--categories=.*', setCategories), 327 new OptionHandler('--categories=.*', setCategories),
328 new OptionHandler('--disable-type-inference', implyCompilation), 328 new OptionHandler('--disable-type-inference', implyCompilation),
329 new OptionHandler('--terse', passThrough), 329 new OptionHandler('--terse', passThrough),
330 new OptionHandler('--dump-info', implyCompilation), 330 new OptionHandler('--dump-info', implyCompilation),
331 new OptionHandler('--disallow-unsafe-eval', 331 new OptionHandler('--disallow-unsafe-eval',
332 (_) => hasDisallowUnsafeEval = true), 332 (_) => hasDisallowUnsafeEval = true),
333 new OptionHandler('--show-package-warnings', passThrough), 333 new OptionHandler('--show-package-warnings', passThrough),
334 new OptionHandler('--csp', passThrough), 334 new OptionHandler('--csp', passThrough),
335 new OptionHandler('--enable-experimental-mirrors', passThrough),
335 new OptionHandler('--enable-async', setEnableAsync), 336 new OptionHandler('--enable-async', setEnableAsync),
336 new OptionHandler('--enable-enum', passThrough), 337 new OptionHandler('--enable-enum', passThrough),
337 new OptionHandler('-D.+=.*', addInEnvironment), 338 new OptionHandler('-D.+=.*', addInEnvironment),
338 339
339 // The following two options must come last. 340 // The following two options must come last.
340 new OptionHandler('-.*', (String argument) { 341 new OptionHandler('-.*', (String argument) {
341 helpAndFail("Unknown option '$argument'."); 342 helpAndFail("Unknown option '$argument'.");
342 }), 343 }),
343 new OptionHandler('.*', (String argument) { 344 new OptionHandler('.*', (String argument) {
344 arguments.add(nativeToUriPath(argument)); 345 arguments.add(nativeToUriPath(argument));
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
689 } else if (exitCode == 253) { 690 } else if (exitCode == 253) {
690 print(">>> TEST CRASH"); 691 print(">>> TEST CRASH");
691 } else { 692 } else {
692 print(">>> TEST FAIL"); 693 print(">>> TEST FAIL");
693 } 694 }
694 stderr.writeln(">>> EOF STDERR"); 695 stderr.writeln(">>> EOF STDERR");
695 subscription.resume(); 696 subscription.resume();
696 }); 697 });
697 }); 698 });
698 } 699 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698