| OLD | NEW |
| 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 leg_apiimpl; | 5 library leg_apiimpl; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import '../compiler.dart' as api; | 9 import '../compiler.dart' as api; |
| 10 import 'dart2jslib.dart' as leg; | 10 import 'dart2jslib.dart' as leg; |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 analyzeOnly: hasOption(options, '--analyze-only'), | 59 analyzeOnly: hasOption(options, '--analyze-only'), |
| 60 analyzeMain: hasOption(options, '--analyze-main'), | 60 analyzeMain: hasOption(options, '--analyze-main'), |
| 61 analyzeSignaturesOnly: | 61 analyzeSignaturesOnly: |
| 62 hasOption(options, '--analyze-signatures-only'), | 62 hasOption(options, '--analyze-signatures-only'), |
| 63 strips: extractCsvOption(options, '--force-strip='), | 63 strips: extractCsvOption(options, '--force-strip='), |
| 64 enableConcreteTypeInference: | 64 enableConcreteTypeInference: |
| 65 hasOption(options, '--enable-concrete-type-inference'), | 65 hasOption(options, '--enable-concrete-type-inference'), |
| 66 disableTypeInferenceFlag: | 66 disableTypeInferenceFlag: |
| 67 hasOption(options, '--disable-type-inference'), | 67 hasOption(options, '--disable-type-inference'), |
| 68 preserveComments: hasOption(options, '--preserve-comments'), | 68 preserveComments: hasOption(options, '--preserve-comments'), |
| 69 useCpsIr: hasOption(options, '--use-cps-ir'), |
| 69 verbose: hasOption(options, '--verbose'), | 70 verbose: hasOption(options, '--verbose'), |
| 70 sourceMapUri: extractUriOption(options, '--source-map='), | 71 sourceMapUri: extractUriOption(options, '--source-map='), |
| 71 outputUri: extractUriOption(options, '--out='), | 72 outputUri: extractUriOption(options, '--out='), |
| 72 terseDiagnostics: hasOption(options, '--terse'), | 73 terseDiagnostics: hasOption(options, '--terse'), |
| 73 deferredMapUri: extractUriOption(options, '--deferred-map='), | 74 deferredMapUri: extractUriOption(options, '--deferred-map='), |
| 74 dumpInfo: hasOption(options, '--dump-info'), | 75 dumpInfo: hasOption(options, '--dump-info'), |
| 75 buildId: extractStringOption( | 76 buildId: extractStringOption( |
| 76 options, '--build-id=', | 77 options, '--build-id=', |
| 77 "build number could not be determined"), | 78 "build number could not be determined"), |
| 78 showPackageWarnings: | 79 showPackageWarnings: |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 print('$message: ${tryToString(exception)}'); | 402 print('$message: ${tryToString(exception)}'); |
| 402 print(tryToString(stackTrace)); | 403 print(tryToString(stackTrace)); |
| 403 } | 404 } |
| 404 | 405 |
| 405 fromEnvironment(String name) => environment[name]; | 406 fromEnvironment(String name) => environment[name]; |
| 406 | 407 |
| 407 LibraryInfo lookupLibraryInfo(String libraryName) { | 408 LibraryInfo lookupLibraryInfo(String libraryName) { |
| 408 return library_info.LIBRARIES[libraryName]; | 409 return library_info.LIBRARIES[libraryName]; |
| 409 } | 410 } |
| 410 } | 411 } |
| OLD | NEW |