| 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:uri'; | 7 import 'dart:uri'; |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 | 9 |
| 10 import '../compiler.dart' as api; | 10 import '../compiler.dart' as api; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 outputProvider: outputProvider, | 37 outputProvider: outputProvider, |
| 38 enableTypeAssertions: hasOption(options, '--enable-checked-mode'), | 38 enableTypeAssertions: hasOption(options, '--enable-checked-mode'), |
| 39 enableUserAssertions: hasOption(options, '--enable-checked-mode'), | 39 enableUserAssertions: hasOption(options, '--enable-checked-mode'), |
| 40 enableMinification: hasOption(options, '--minify'), | 40 enableMinification: hasOption(options, '--minify'), |
| 41 enableNativeLiveTypeAnalysis: | 41 enableNativeLiveTypeAnalysis: |
| 42 !hasOption(options, '--disable-native-live-type-analysis'), | 42 !hasOption(options, '--disable-native-live-type-analysis'), |
| 43 emitJavaScript: !hasOption(options, '--output-type=dart'), | 43 emitJavaScript: !hasOption(options, '--output-type=dart'), |
| 44 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'), | 44 disallowUnsafeEval: hasOption(options, '--disallow-unsafe-eval'), |
| 45 analyzeAll: hasOption(options, '--analyze-all'), | 45 analyzeAll: hasOption(options, '--analyze-all'), |
| 46 analyzeOnly: hasOption(options, '--analyze-only'), | 46 analyzeOnly: hasOption(options, '--analyze-only'), |
| 47 analyzeSignaturesOnly: |
| 48 hasOption(options, '--analyze-signatures-only'), |
| 47 rejectDeprecatedFeatures: | 49 rejectDeprecatedFeatures: |
| 48 hasOption(options, '--reject-deprecated-language-features'), | 50 hasOption(options, '--reject-deprecated-language-features'), |
| 49 checkDeprecationInSdk: | 51 checkDeprecationInSdk: |
| 50 hasOption(options, | 52 hasOption(options, |
| 51 '--report-sdk-use-of-deprecated-language-features'), | 53 '--report-sdk-use-of-deprecated-language-features'), |
| 52 strips: getStrips(options), | 54 strips: getStrips(options), |
| 53 enableConcreteTypeInference: | 55 enableConcreteTypeInference: |
| 54 hasOption(options, '--enable-concrete-type-inference'), | 56 hasOption(options, '--enable-concrete-type-inference'), |
| 55 preserveComments: hasOption(options, '--preserve-comments')) { | 57 preserveComments: hasOption(options, '--preserve-comments')) { |
| 56 if (!libraryRoot.path.endsWith("/")) { | 58 if (!libraryRoot.path.endsWith("/")) { |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 handler(translateUri(span.uri, null), span.begin, span.end, | 259 handler(translateUri(span.uri, null), span.begin, span.end, |
| 258 message, kind); | 260 message, kind); |
| 259 } | 261 } |
| 260 } | 262 } |
| 261 | 263 |
| 262 bool get isMockCompilation { | 264 bool get isMockCompilation { |
| 263 return mockableLibraryUsed | 265 return mockableLibraryUsed |
| 264 && (options.indexOf('--allow-mock-compilation') != -1); | 266 && (options.indexOf('--allow-mock-compilation') != -1); |
| 265 } | 267 } |
| 266 } | 268 } |
| OLD | NEW |