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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/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: Created 6 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 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:io' 9 import 'dart:io'
10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException, 10 show exit, File, FileMode, Platform, RandomAccessFile, FileSystemException,
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 new OptionHandler('--analyze-signatures-only', setAnalyzeOnly), 308 new OptionHandler('--analyze-signatures-only', setAnalyzeOnly),
309 new OptionHandler('--disable-native-live-type-analysis', passThrough), 309 new OptionHandler('--disable-native-live-type-analysis', passThrough),
310 new OptionHandler('--categories=.*', setCategories), 310 new OptionHandler('--categories=.*', setCategories),
311 new OptionHandler('--disable-type-inference', implyCompilation), 311 new OptionHandler('--disable-type-inference', implyCompilation),
312 new OptionHandler('--terse', passThrough), 312 new OptionHandler('--terse', passThrough),
313 new OptionHandler('--dump-info', implyCompilation), 313 new OptionHandler('--dump-info', implyCompilation),
314 new OptionHandler('--disallow-unsafe-eval', 314 new OptionHandler('--disallow-unsafe-eval',
315 (_) => hasDisallowUnsafeEval = true), 315 (_) => hasDisallowUnsafeEval = true),
316 new OptionHandler('--show-package-warnings', passThrough), 316 new OptionHandler('--show-package-warnings', passThrough),
317 new OptionHandler('--csp', passThrough), 317 new OptionHandler('--csp', passThrough),
318 new OptionHandler('--enable-experimental-mirrors', passThrough),
318 new OptionHandler('-D.+=.*', addInEnvironment), 319 new OptionHandler('-D.+=.*', addInEnvironment),
319 320
320 // The following two options must come last. 321 // The following two options must come last.
321 new OptionHandler('-.*', (String argument) { 322 new OptionHandler('-.*', (String argument) {
322 helpAndFail("Unknown option '$argument'."); 323 helpAndFail("Unknown option '$argument'.");
323 }), 324 }),
324 new OptionHandler('.*', (String argument) { 325 new OptionHandler('.*', (String argument) {
325 arguments.add(nativeToUriPath(argument)); 326 arguments.add(nativeToUriPath(argument));
326 }) 327 })
327 ]; 328 ];
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
665 } else { 666 } else {
666 print(">>> TEST FAIL"); 667 print(">>> TEST FAIL");
667 } 668 }
668 stderr.writeln(">>> EOF STDERR"); 669 stderr.writeln(">>> EOF STDERR");
669 runJob(); 670 runJob();
670 }); 671 });
671 } 672 }
672 673
673 runJob(); 674 runJob();
674 } 675 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698