| OLD | NEW |
| 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 EventSink, Future; | 7 import 'dart:async' show EventSink, Future; |
| 8 import 'dart:convert' show UTF8, LineSplitter; | 8 import 'dart:convert' show UTF8, LineSplitter; |
| 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; | 9 import 'dart:io' show exit, File, FileMode, Platform, stdin, stderr; |
| 10 | 10 |
| (...skipping 349 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 new OptionHandler('--packages=.+', setPackageConfig), | 360 new OptionHandler('--packages=.+', setPackageConfig), |
| 361 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), | 361 new OptionHandler('--package-root=.+|-p.+', setPackageRoot), |
| 362 new OptionHandler(Flags.analyzeAll, setAnalyzeAll), | 362 new OptionHandler(Flags.analyzeAll, setAnalyzeAll), |
| 363 new OptionHandler(Flags.analyzeOnly, setAnalyzeOnly), | 363 new OptionHandler(Flags.analyzeOnly, setAnalyzeOnly), |
| 364 new OptionHandler(Flags.noSourceMaps, passThrough), | 364 new OptionHandler(Flags.noSourceMaps, passThrough), |
| 365 new OptionHandler(Option.resolutionInput, setResolutionInput), | 365 new OptionHandler(Option.resolutionInput, setResolutionInput), |
| 366 new OptionHandler(Flags.resolveOnly, setResolveOnly), | 366 new OptionHandler(Flags.resolveOnly, setResolveOnly), |
| 367 new OptionHandler(Flags.analyzeSignaturesOnly, setAnalyzeOnly), | 367 new OptionHandler(Flags.analyzeSignaturesOnly, setAnalyzeOnly), |
| 368 new OptionHandler(Flags.disableNativeLiveTypeAnalysis, passThrough), | 368 new OptionHandler(Flags.disableNativeLiveTypeAnalysis, passThrough), |
| 369 new OptionHandler('--categories=.*', setCategories), | 369 new OptionHandler('--categories=.*', setCategories), |
| 370 new OptionHandler('--platform-config=.*', passThrough), |
| 370 new OptionHandler(Flags.disableTypeInference, implyCompilation), | 371 new OptionHandler(Flags.disableTypeInference, implyCompilation), |
| 371 new OptionHandler(Flags.terse, passThrough), | 372 new OptionHandler(Flags.terse, passThrough), |
| 372 new OptionHandler('--deferred-map=.+', implyCompilation), | 373 new OptionHandler('--deferred-map=.+', implyCompilation), |
| 373 new OptionHandler(Flags.dumpInfo, setDumpInfo), | 374 new OptionHandler(Flags.dumpInfo, setDumpInfo), |
| 374 new OptionHandler( | 375 new OptionHandler( |
| 375 '--disallow-unsafe-eval', (_) => hasDisallowUnsafeEval = true), | 376 '--disallow-unsafe-eval', (_) => hasDisallowUnsafeEval = true), |
| 376 new OptionHandler(Option.showPackageWarnings, passThrough), | 377 new OptionHandler(Option.showPackageWarnings, passThrough), |
| 377 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), | 378 new OptionHandler(Flags.useContentSecurityPolicy, passThrough), |
| 378 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), | 379 new OptionHandler(Flags.enableExperimentalMirrors, passThrough), |
| 379 new OptionHandler(Flags.enableAssertMessage, passThrough), | 380 new OptionHandler(Flags.enableAssertMessage, passThrough), |
| (...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 990 @override | 991 @override |
| 991 void close() { | 992 void close() { |
| 992 // Do nothing. | 993 // Do nothing. |
| 993 } | 994 } |
| 994 | 995 |
| 995 @override | 996 @override |
| 996 void addError(errorEvent, [StackTrace stackTrace]) { | 997 void addError(errorEvent, [StackTrace stackTrace]) { |
| 997 // Ignore | 998 // Ignore |
| 998 } | 999 } |
| 999 } | 1000 } |
| OLD | NEW |