| 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 'package:package_config/packages.dart'; | 10 import 'package:package_config/packages.dart'; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 sourceMapUri: extractUriOption(options, '--source-map='), | 109 sourceMapUri: extractUriOption(options, '--source-map='), |
| 110 outputUri: extractUriOption(options, '--out='), | 110 outputUri: extractUriOption(options, '--out='), |
| 111 deferredMapUri: extractUriOption(options, '--deferred-map='), | 111 deferredMapUri: extractUriOption(options, '--deferred-map='), |
| 112 dumpInfo: hasOption(options, Flags.dumpInfo), | 112 dumpInfo: hasOption(options, Flags.dumpInfo), |
| 113 buildId: extractStringOption( | 113 buildId: extractStringOption( |
| 114 options, '--build-id=', | 114 options, '--build-id=', |
| 115 "build number could not be determined"), | 115 "build number could not be determined"), |
| 116 useContentSecurityPolicy: | 116 useContentSecurityPolicy: |
| 117 hasOption(options, Flags.useContentSecurityPolicy), | 117 hasOption(options, Flags.useContentSecurityPolicy), |
| 118 useStartupEmitter: hasOption(options, Flags.fastStartup), | 118 useStartupEmitter: hasOption(options, Flags.fastStartup), |
| 119 enableConditionalDirectives: |
| 120 hasOption(options, Flags.conditionalDirectives), |
| 119 hasIncrementalSupport: | 121 hasIncrementalSupport: |
| 120 forceIncrementalSupport || | 122 forceIncrementalSupport || |
| 121 hasOption(options, Flags.incrementalSupport), | 123 hasOption(options, Flags.incrementalSupport), |
| 122 diagnosticOptions: new DiagnosticOptions( | 124 diagnosticOptions: new DiagnosticOptions( |
| 123 suppressWarnings: hasOption(options, Flags.suppressWarnings), | 125 suppressWarnings: hasOption(options, Flags.suppressWarnings), |
| 124 fatalWarnings: hasOption(options, Flags.fatalWarnings), | 126 fatalWarnings: hasOption(options, Flags.fatalWarnings), |
| 125 suppressHints: hasOption(options, Flags.suppressHints), | 127 suppressHints: hasOption(options, Flags.suppressHints), |
| 126 terseDiagnostics: hasOption(options, Flags.terse), | 128 terseDiagnostics: hasOption(options, Flags.terse), |
| 127 showPackageWarnings: | 129 showPackageWarnings: |
| 128 hasOption(options, Flags.showPackageWarnings)), | 130 hasOption(options, Flags.showPackageWarnings)), |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 563 Uri lookupLibraryUri(String libraryName) { | 565 Uri lookupLibraryUri(String libraryName) { |
| 564 assert(invariant(NO_LOCATION_SPANNABLE, | 566 assert(invariant(NO_LOCATION_SPANNABLE, |
| 565 sdkLibraries != null, message: "setupSdk() has not been run")); | 567 sdkLibraries != null, message: "setupSdk() has not been run")); |
| 566 return sdkLibraries[libraryName]; | 568 return sdkLibraries[libraryName]; |
| 567 } | 569 } |
| 568 | 570 |
| 569 Uri resolvePatchUri(String libraryName) { | 571 Uri resolvePatchUri(String libraryName) { |
| 570 return backend.resolvePatchUri(libraryName, platformConfigUri); | 572 return backend.resolvePatchUri(libraryName, platformConfigUri); |
| 571 } | 573 } |
| 572 } | 574 } |
| OLD | NEW |