| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 deferredMapUri: extractUriOption(options, '--deferred-map='), | 119 deferredMapUri: extractUriOption(options, '--deferred-map='), |
| 120 dumpInfo: hasOption(options, Flags.dumpInfo), | 120 dumpInfo: hasOption(options, Flags.dumpInfo), |
| 121 buildId: extractStringOption( | 121 buildId: extractStringOption( |
| 122 options, '--build-id=', | 122 options, '--build-id=', |
| 123 "build number could not be determined"), | 123 "build number could not be determined"), |
| 124 useContentSecurityPolicy: | 124 useContentSecurityPolicy: |
| 125 hasOption(options, Flags.useContentSecurityPolicy), | 125 hasOption(options, Flags.useContentSecurityPolicy), |
| 126 useStartupEmitter: hasOption(options, Flags.fastStartup), | 126 useStartupEmitter: hasOption(options, Flags.fastStartup), |
| 127 enableConditionalDirectives: | 127 enableConditionalDirectives: |
| 128 hasOption(options, Flags.conditionalDirectives), | 128 hasOption(options, Flags.conditionalDirectives), |
| 129 useNewSourceInfo: hasOption(options, Flags.useNewSourceInfo), |
| 129 hasIncrementalSupport: | 130 hasIncrementalSupport: |
| 130 forceIncrementalSupport || | 131 forceIncrementalSupport || |
| 131 hasOption(options, Flags.incrementalSupport), | 132 hasOption(options, Flags.incrementalSupport), |
| 132 diagnosticOptions: new DiagnosticOptions( | 133 diagnosticOptions: new DiagnosticOptions( |
| 133 suppressWarnings: hasOption(options, Flags.suppressWarnings), | 134 suppressWarnings: hasOption(options, Flags.suppressWarnings), |
| 134 fatalWarnings: hasOption(options, Flags.fatalWarnings), | 135 fatalWarnings: hasOption(options, Flags.fatalWarnings), |
| 135 suppressHints: hasOption(options, Flags.suppressHints), | 136 suppressHints: hasOption(options, Flags.suppressHints), |
| 136 terseDiagnostics: hasOption(options, Flags.terse), | 137 terseDiagnostics: hasOption(options, Flags.terse), |
| 137 shownPackageWarnings: extractOptionalCsvOption( | 138 shownPackageWarnings: extractOptionalCsvOption( |
| 138 options, Flags.showPackageWarnings)), | 139 options, Flags.showPackageWarnings)), |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 616 Uri lookupLibraryUri(String libraryName) { | 617 Uri lookupLibraryUri(String libraryName) { |
| 617 assert(invariant(NO_LOCATION_SPANNABLE, | 618 assert(invariant(NO_LOCATION_SPANNABLE, |
| 618 sdkLibraries != null, message: "setupSdk() has not been run")); | 619 sdkLibraries != null, message: "setupSdk() has not been run")); |
| 619 return sdkLibraries[libraryName]; | 620 return sdkLibraries[libraryName]; |
| 620 } | 621 } |
| 621 | 622 |
| 622 Uri resolvePatchUri(String libraryName) { | 623 Uri resolvePatchUri(String libraryName) { |
| 623 return backend.resolvePatchUri(libraryName, platformConfigUri); | 624 return backend.resolvePatchUri(libraryName, platformConfigUri); |
| 624 } | 625 } |
| 625 } | 626 } |
| OLD | NEW |