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), | |
121 hasIncrementalSupport: | 119 hasIncrementalSupport: |
122 forceIncrementalSupport || | 120 forceIncrementalSupport || |
123 hasOption(options, Flags.incrementalSupport), | 121 hasOption(options, Flags.incrementalSupport), |
124 diagnosticOptions: new DiagnosticOptions( | 122 diagnosticOptions: new DiagnosticOptions( |
125 suppressWarnings: hasOption(options, Flags.suppressWarnings), | 123 suppressWarnings: hasOption(options, Flags.suppressWarnings), |
126 fatalWarnings: hasOption(options, Flags.fatalWarnings), | 124 fatalWarnings: hasOption(options, Flags.fatalWarnings), |
127 suppressHints: hasOption(options, Flags.suppressHints), | 125 suppressHints: hasOption(options, Flags.suppressHints), |
128 terseDiagnostics: hasOption(options, Flags.terse), | 126 terseDiagnostics: hasOption(options, Flags.terse), |
129 showPackageWarnings: | 127 showPackageWarnings: |
130 hasOption(options, Flags.showPackageWarnings)), | 128 hasOption(options, Flags.showPackageWarnings)), |
(...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
565 Uri lookupLibraryUri(String libraryName) { | 563 Uri lookupLibraryUri(String libraryName) { |
566 assert(invariant(NO_LOCATION_SPANNABLE, | 564 assert(invariant(NO_LOCATION_SPANNABLE, |
567 sdkLibraries != null, message: "setupSdk() has not been run")); | 565 sdkLibraries != null, message: "setupSdk() has not been run")); |
568 return sdkLibraries[libraryName]; | 566 return sdkLibraries[libraryName]; |
569 } | 567 } |
570 | 568 |
571 Uri resolvePatchUri(String libraryName) { | 569 Uri resolvePatchUri(String libraryName) { |
572 return backend.resolvePatchUri(libraryName, platformConfigUri); | 570 return backend.resolvePatchUri(libraryName, platformConfigUri); |
573 } | 571 } |
574 } | 572 } |
OLD | NEW |