| 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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 : this.options = options, | 62 : this.options = options, |
| 63 this.allowedLibraryCategories = getAllowedLibraryCategories(options), | 63 this.allowedLibraryCategories = getAllowedLibraryCategories(options), |
| 64 super( | 64 super( |
| 65 outputProvider: outputProvider, | 65 outputProvider: outputProvider, |
| 66 enableTypeAssertions: hasOption(options, Flags.enableCheckedMode), | 66 enableTypeAssertions: hasOption(options, Flags.enableCheckedMode), |
| 67 enableUserAssertions: hasOption(options, Flags.enableCheckedMode), | 67 enableUserAssertions: hasOption(options, Flags.enableCheckedMode), |
| 68 trustTypeAnnotations: | 68 trustTypeAnnotations: |
| 69 hasOption(options, Flags.trustTypeAnnotations), | 69 hasOption(options, Flags.trustTypeAnnotations), |
| 70 trustPrimitives: | 70 trustPrimitives: |
| 71 hasOption(options, Flags.trustPrimitives), | 71 hasOption(options, Flags.trustPrimitives), |
| 72 trustJSInteropTypeAnnotations: |
| 73 hasOption(options, Flags.trustJSInteropTypeAnnotations), |
| 72 enableMinification: hasOption(options, Flags.minify), | 74 enableMinification: hasOption(options, Flags.minify), |
| 73 useFrequencyNamer: | 75 useFrequencyNamer: |
| 74 !hasOption(options, Flags.noFrequencyBasedMinification), | 76 !hasOption(options, Flags.noFrequencyBasedMinification), |
| 75 preserveUris: hasOption(options, Flags.preserveUris), | 77 preserveUris: hasOption(options, Flags.preserveUris), |
| 76 enableNativeLiveTypeAnalysis: | 78 enableNativeLiveTypeAnalysis: |
| 77 !hasOption(options, Flags.disableNativeLiveTypeAnalysis), | 79 !hasOption(options, Flags.disableNativeLiveTypeAnalysis), |
| 78 emitJavaScript: !(hasOption(options, '--output-type=dart') || | 80 emitJavaScript: !(hasOption(options, '--output-type=dart') || |
| 79 hasOption(options, '--output-type=dart-multi')), | 81 hasOption(options, '--output-type=dart-multi')), |
| 80 dart2dartMultiFile: hasOption(options, '--output-type=dart-multi'), | 82 dart2dartMultiFile: hasOption(options, '--output-type=dart-multi'), |
| 81 generateSourceMap: !hasOption(options, Flags.noSourceMaps), | 83 generateSourceMap: !hasOption(options, Flags.noSourceMaps), |
| (...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 } | 559 } |
| 558 } | 560 } |
| 559 | 561 |
| 560 | 562 |
| 561 fromEnvironment(String name) => environment[name]; | 563 fromEnvironment(String name) => environment[name]; |
| 562 | 564 |
| 563 library_info.LibraryInfo lookupLibraryInfo(String libraryName) { | 565 library_info.LibraryInfo lookupLibraryInfo(String libraryName) { |
| 564 return library_info.libraries[libraryName]; | 566 return library_info.libraries[libraryName]; |
| 565 } | 567 } |
| 566 } | 568 } |
| OLD | NEW |