| 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 import 'dart:convert'; | 8 import 'dart:convert'; |
| 9 | 9 |
| 10 import '../compiler_new.dart' as api; | 10 import '../compiler_new.dart' as api; |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 outputUri: extractUriOption(options, '--out='), | 86 outputUri: extractUriOption(options, '--out='), |
| 87 terseDiagnostics: hasOption(options, '--terse'), | 87 terseDiagnostics: hasOption(options, '--terse'), |
| 88 deferredMapUri: extractUriOption(options, '--deferred-map='), | 88 deferredMapUri: extractUriOption(options, '--deferred-map='), |
| 89 dumpInfo: hasOption(options, '--dump-info'), | 89 dumpInfo: hasOption(options, '--dump-info'), |
| 90 buildId: extractStringOption( | 90 buildId: extractStringOption( |
| 91 options, '--build-id=', | 91 options, '--build-id=', |
| 92 "build number could not be determined"), | 92 "build number could not be determined"), |
| 93 showPackageWarnings: | 93 showPackageWarnings: |
| 94 hasOption(options, '--show-package-warnings'), | 94 hasOption(options, '--show-package-warnings'), |
| 95 useContentSecurityPolicy: hasOption(options, '--csp'), | 95 useContentSecurityPolicy: hasOption(options, '--csp'), |
| 96 useStartupEmitter: hasOption(options, '--fast-startup'), |
| 96 hasIncrementalSupport: | 97 hasIncrementalSupport: |
| 97 forceIncrementalSupport || | 98 forceIncrementalSupport || |
| 98 hasOption(options, '--incremental-support'), | 99 hasOption(options, '--incremental-support'), |
| 99 suppressWarnings: hasOption(options, '--suppress-warnings'), | 100 suppressWarnings: hasOption(options, '--suppress-warnings'), |
| 100 fatalWarnings: hasOption(options, '--fatal-warnings'), | 101 fatalWarnings: hasOption(options, '--fatal-warnings'), |
| 101 enableExperimentalMirrors: | 102 enableExperimentalMirrors: |
| 102 hasOption(options, '--enable-experimental-mirrors'), | 103 hasOption(options, '--enable-experimental-mirrors'), |
| 103 generateCodeWithCompileTimeErrors: | 104 generateCodeWithCompileTimeErrors: |
| 104 hasOption(options, '--generate-code-with-compile-time-errors'), | 105 hasOption(options, '--generate-code-with-compile-time-errors'), |
| 105 testMode: hasOption(options, '--test-mode'), | 106 testMode: hasOption(options, '--test-mode'), |
| (...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 477 print('$message: ${tryToString(exception)}'); | 478 print('$message: ${tryToString(exception)}'); |
| 478 print(tryToString(stackTrace)); | 479 print(tryToString(stackTrace)); |
| 479 } | 480 } |
| 480 | 481 |
| 481 fromEnvironment(String name) => environment[name]; | 482 fromEnvironment(String name) => environment[name]; |
| 482 | 483 |
| 483 LibraryInfo lookupLibraryInfo(String libraryName) { | 484 LibraryInfo lookupLibraryInfo(String libraryName) { |
| 484 return library_info.LIBRARIES[libraryName]; | 485 return library_info.LIBRARIES[libraryName]; |
| 485 } | 486 } |
| 486 } | 487 } |
| OLD | NEW |