| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 dart2js.src.options; | 5 library dart2js.src.options; |
| 6 | 6 |
| 7 import '../compiler.dart' show PackagesDiscoveryProvider; | 7 import '../compiler.dart' show PackagesDiscoveryProvider; |
| 8 import 'commandline_options.dart' show Flags; | 8 import 'commandline_options.dart' show Flags; |
| 9 | 9 |
| 10 /// Options used for parsing. | 10 /// Options used for parsing. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 190 |
| 191 /// Whether to emit URIs in the reflection metadata. | 191 /// Whether to emit URIs in the reflection metadata. |
| 192 final bool preserveUris; | 192 final bool preserveUris; |
| 193 | 193 |
| 194 /// The locations of serialized data used for resolution. | 194 /// The locations of serialized data used for resolution. |
| 195 final List<Uri> resolutionInputs; | 195 final List<Uri> resolutionInputs; |
| 196 | 196 |
| 197 /// The location of the serialized data from resolution. | 197 /// The location of the serialized data from resolution. |
| 198 final Uri resolutionOutput; | 198 final Uri resolutionOutput; |
| 199 | 199 |
| 200 // If `true`, sources are resolved and serialized. | 200 /// If `true`, sources are resolved and serialized. |
| 201 final bool resolveOnly; | 201 final bool resolveOnly; |
| 202 | 202 |
| 203 // If `true`, sources are only available from serialized data. | 203 /// If `true`, sources are only available from serialized data. |
| 204 final bool compileOnly; | 204 final bool compileOnly; |
| 205 | 205 |
| 206 /// URI where the compiler should generate the output source map file. | 206 /// URI where the compiler should generate the output source map file. |
| 207 final Uri sourceMapUri; | 207 final Uri sourceMapUri; |
| 208 | 208 |
| 209 /// The compiler is run from the build bot. | 209 /// The compiler is run from the build bot. |
| 210 final bool testMode; | 210 final bool testMode; |
| 211 | 211 |
| 212 /// Whether to trust JS-interop annotations. (experimental) | 212 /// Whether to trust JS-interop annotations. (experimental) |
| 213 final bool trustJSInteropTypeAnnotations; | 213 final bool trustJSInteropTypeAnnotations; |
| (...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 } | 735 } |
| 736 | 736 |
| 737 /// Locations of the platform descriptor files relative to the library root. | 737 /// Locations of the platform descriptor files relative to the library root. |
| 738 const String _clientPlatform = "lib/dart_client.platform"; | 738 const String _clientPlatform = "lib/dart_client.platform"; |
| 739 const String _serverPlatform = "lib/dart_server.platform"; | 739 const String _serverPlatform = "lib/dart_server.platform"; |
| 740 const String _sharedPlatform = "lib/dart_shared.platform"; | 740 const String _sharedPlatform = "lib/dart_shared.platform"; |
| 741 | 741 |
| 742 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; | 742 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; |
| 743 const bool _forceIncrementalSupport = | 743 const bool _forceIncrementalSupport = |
| 744 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); | 744 const bool.fromEnvironment('DART2JS_EXPERIMENTAL_INCREMENTAL_SUPPORT'); |
| OLD | NEW |