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 dart2js.compiler_base; | 5 library dart2js.compiler_base; |
6 | 6 |
7 import 'dart:async' show | 7 import 'dart:async' show |
8 EventSink, | 8 EventSink, |
9 Future; | 9 Future; |
10 | 10 |
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 | 188 |
189 final bool useFrequencyNamer; | 189 final bool useFrequencyNamer; |
190 | 190 |
191 /// When `true` emits URIs in the reflection metadata. | 191 /// When `true` emits URIs in the reflection metadata. |
192 final bool preserveUris; | 192 final bool preserveUris; |
193 | 193 |
194 final bool enableTypeAssertions; | 194 final bool enableTypeAssertions; |
195 final bool enableUserAssertions; | 195 final bool enableUserAssertions; |
196 final bool trustTypeAnnotations; | 196 final bool trustTypeAnnotations; |
197 final bool trustPrimitives; | 197 final bool trustPrimitives; |
| 198 final bool trustJSInteropTypeAnnotations; |
198 final bool disableTypeInferenceFlag; | 199 final bool disableTypeInferenceFlag; |
199 final Uri deferredMapUri; | 200 final Uri deferredMapUri; |
200 final bool dumpInfo; | 201 final bool dumpInfo; |
201 final bool useContentSecurityPolicy; | 202 final bool useContentSecurityPolicy; |
202 final bool enableExperimentalMirrors; | 203 final bool enableExperimentalMirrors; |
203 final bool enableAssertMessage; | 204 final bool enableAssertMessage; |
204 | 205 |
205 /** | 206 /** |
206 * The maximum size of a concrete type before it widens to dynamic during | 207 * The maximum size of a concrete type before it widens to dynamic during |
207 * concrete type inference. | 208 * concrete type inference. |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 compilationFailedInternal = value; | 424 compilationFailedInternal = value; |
424 } | 425 } |
425 | 426 |
426 /// Set by the backend if real reflection is detected in use of dart:mirrors. | 427 /// Set by the backend if real reflection is detected in use of dart:mirrors. |
427 bool disableTypeInferenceForMirrors = false; | 428 bool disableTypeInferenceForMirrors = false; |
428 | 429 |
429 Compiler({this.enableTypeAssertions: false, | 430 Compiler({this.enableTypeAssertions: false, |
430 this.enableUserAssertions: false, | 431 this.enableUserAssertions: false, |
431 this.trustTypeAnnotations: false, | 432 this.trustTypeAnnotations: false, |
432 this.trustPrimitives: false, | 433 this.trustPrimitives: false, |
| 434 this.trustJSInteropTypeAnnotations: false, |
433 bool disableTypeInferenceFlag: false, | 435 bool disableTypeInferenceFlag: false, |
434 this.maxConcreteTypeSize: 5, | 436 this.maxConcreteTypeSize: 5, |
435 this.enableMinification: false, | 437 this.enableMinification: false, |
436 this.preserveUris: false, | 438 this.preserveUris: false, |
437 this.enableNativeLiveTypeAnalysis: false, | 439 this.enableNativeLiveTypeAnalysis: false, |
438 bool emitJavaScript: true, | 440 bool emitJavaScript: true, |
439 bool dart2dartMultiFile: false, | 441 bool dart2dartMultiFile: false, |
440 bool generateSourceMap: true, | 442 bool generateSourceMap: true, |
441 bool analyzeAllFlag: false, | 443 bool analyzeAllFlag: false, |
442 bool analyzeOnly: false, | 444 bool analyzeOnly: false, |
(...skipping 1649 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2092 if (_otherDependencies == null) { | 2094 if (_otherDependencies == null) { |
2093 _otherDependencies = new Setlet<Element>(); | 2095 _otherDependencies = new Setlet<Element>(); |
2094 } | 2096 } |
2095 _otherDependencies.add(element.implementation); | 2097 _otherDependencies.add(element.implementation); |
2096 } | 2098 } |
2097 | 2099 |
2098 Iterable<Element> get otherDependencies { | 2100 Iterable<Element> get otherDependencies { |
2099 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2101 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
2100 } | 2102 } |
2101 } | 2103 } |
OLD | NEW |