| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 verbose: hasOption(options, '--verbose'), | 69 verbose: hasOption(options, '--verbose'), |
| 70 sourceMapUri: extractUriOption(options, '--source-map='), | 70 sourceMapUri: extractUriOption(options, '--source-map='), |
| 71 outputUri: extractUriOption(options, '--out='), | 71 outputUri: extractUriOption(options, '--out='), |
| 72 terseDiagnostics: hasOption(options, '--terse'), | 72 terseDiagnostics: hasOption(options, '--terse'), |
| 73 deferredMapUri: extractUriOption(options, '--deferred-map='), |
| 73 dumpInfo: hasOption(options, '--dump-info'), | 74 dumpInfo: hasOption(options, '--dump-info'), |
| 74 buildId: extractStringOption( | 75 buildId: extractStringOption( |
| 75 options, '--build-id=', | 76 options, '--build-id=', |
| 76 "build number could not be determined"), | 77 "build number could not be determined"), |
| 77 showPackageWarnings: | 78 showPackageWarnings: |
| 78 hasOption(options, '--show-package-warnings'), | 79 hasOption(options, '--show-package-warnings'), |
| 79 useContentSecurityPolicy: hasOption(options, '--csp'), | 80 useContentSecurityPolicy: hasOption(options, '--csp'), |
| 80 hasIncrementalSupport: | 81 hasIncrementalSupport: |
| 81 forceIncrementalSupport || | 82 forceIncrementalSupport || |
| 82 hasOption(options, '--incremental-support'), | 83 hasOption(options, '--incremental-support'), |
| (...skipping 303 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 print('$message: ${tryToString(exception)}'); | 387 print('$message: ${tryToString(exception)}'); |
| 387 print(tryToString(stackTrace)); | 388 print(tryToString(stackTrace)); |
| 388 } | 389 } |
| 389 | 390 |
| 390 fromEnvironment(String name) => environment[name]; | 391 fromEnvironment(String name) => environment[name]; |
| 391 | 392 |
| 392 LibraryInfo lookupLibraryInfo(String libraryName) { | 393 LibraryInfo lookupLibraryInfo(String libraryName) { |
| 393 return library_info.LIBRARIES[libraryName]; | 394 return library_info.LIBRARIES[libraryName]; |
| 394 } | 395 } |
| 395 } | 396 } |
| OLD | NEW |