| 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 controlling diagnostic messages. | 10 /// Options used for controlling diagnostic messages. |
| (...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 433 analyzeOnly: | 433 analyzeOnly: |
| 434 analyzeOnly || analyzeSignaturesOnly || analyzeAll || resolveOnly, | 434 analyzeOnly || analyzeSignaturesOnly || analyzeAll || resolveOnly, |
| 435 analyzeSignaturesOnly: analyzeSignaturesOnly, | 435 analyzeSignaturesOnly: analyzeSignaturesOnly, |
| 436 buildId: buildId, | 436 buildId: buildId, |
| 437 deferredMapUri: deferredMapUri, | 437 deferredMapUri: deferredMapUri, |
| 438 fatalWarnings: fatalWarnings, | 438 fatalWarnings: fatalWarnings, |
| 439 terseDiagnostics: terseDiagnostics, | 439 terseDiagnostics: terseDiagnostics, |
| 440 suppressWarnings: suppressWarnings, | 440 suppressWarnings: suppressWarnings, |
| 441 suppressHints: suppressHints, | 441 suppressHints: suppressHints, |
| 442 shownPackageWarnings: shownPackageWarnings, | 442 shownPackageWarnings: shownPackageWarnings, |
| 443 // TODO(sigmund): remove once we support inlining and type-inference | 443 disableInlining: disableInlining, |
| 444 // with `useKernel`. | 444 disableTypeInference: disableTypeInference, |
| 445 disableInlining: disableInlining || useKernel, | |
| 446 disableTypeInference: disableTypeInference || useKernel, | |
| 447 dumpInfo: dumpInfo, | 445 dumpInfo: dumpInfo, |
| 448 enableAssertMessage: enableAssertMessage, | 446 enableAssertMessage: enableAssertMessage, |
| 449 enableExperimentalMirrors: enableExperimentalMirrors, | 447 enableExperimentalMirrors: enableExperimentalMirrors, |
| 450 enableMinification: enableMinification, | 448 enableMinification: enableMinification, |
| 451 enableNativeLiveTypeAnalysis: enableNativeLiveTypeAnalysis, | 449 enableNativeLiveTypeAnalysis: enableNativeLiveTypeAnalysis, |
| 452 enableTypeAssertions: enableTypeAssertions, | 450 enableTypeAssertions: enableTypeAssertions, |
| 453 enableUserAssertions: enableUserAssertions, | 451 enableUserAssertions: enableUserAssertions, |
| 454 experimentalTrackAllocations: experimentalTrackAllocations, | 452 experimentalTrackAllocations: experimentalTrackAllocations, |
| 455 experimentalAllocationsPath: experimentalAllocationsPath, | 453 experimentalAllocationsPath: experimentalAllocationsPath, |
| 456 generateCodeWithCompileTimeErrors: | 454 generateCodeWithCompileTimeErrors: |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 758 _extractStringOption(options, "--platform-config=", null), | 756 _extractStringOption(options, "--platform-config=", null), |
| 759 _extractCsvOption(options, '--categories=')); | 757 _extractCsvOption(options, '--categories=')); |
| 760 } | 758 } |
| 761 | 759 |
| 762 /// Locations of the platform descriptor files relative to the library root. | 760 /// Locations of the platform descriptor files relative to the library root. |
| 763 const String _clientPlatform = "lib/dart_client.platform"; | 761 const String _clientPlatform = "lib/dart_client.platform"; |
| 764 const String _serverPlatform = "lib/dart_server.platform"; | 762 const String _serverPlatform = "lib/dart_server.platform"; |
| 765 const String _sharedPlatform = "lib/dart_shared.platform"; | 763 const String _sharedPlatform = "lib/dart_shared.platform"; |
| 766 | 764 |
| 767 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; | 765 const String _UNDETERMINED_BUILD_ID = "build number could not be determined"; |
| OLD | NEW |