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 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 | 174 |
175 final bool useFrequencyNamer; | 175 final bool useFrequencyNamer; |
176 | 176 |
177 /// When `true` emits URIs in the reflection metadata. | 177 /// When `true` emits URIs in the reflection metadata. |
178 final bool preserveUris; | 178 final bool preserveUris; |
179 | 179 |
180 final bool enableTypeAssertions; | 180 final bool enableTypeAssertions; |
181 final bool enableUserAssertions; | 181 final bool enableUserAssertions; |
182 final bool trustTypeAnnotations; | 182 final bool trustTypeAnnotations; |
183 final bool trustPrimitives; | 183 final bool trustPrimitives; |
| 184 final bool trustJSInteropTypeAnnotations; |
184 final bool disableTypeInferenceFlag; | 185 final bool disableTypeInferenceFlag; |
185 final Uri deferredMapUri; | 186 final Uri deferredMapUri; |
186 final bool dumpInfo; | 187 final bool dumpInfo; |
187 final bool useContentSecurityPolicy; | 188 final bool useContentSecurityPolicy; |
188 final bool enableExperimentalMirrors; | 189 final bool enableExperimentalMirrors; |
189 final bool enableAssertMessage; | 190 final bool enableAssertMessage; |
190 | 191 |
191 /** | 192 /** |
192 * The maximum size of a concrete type before it widens to dynamic during | 193 * The maximum size of a concrete type before it widens to dynamic during |
193 * concrete type inference. | 194 * concrete type inference. |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 compilationFailedInternal = value; | 426 compilationFailedInternal = value; |
426 } | 427 } |
427 | 428 |
428 /// Set by the backend if real reflection is detected in use of dart:mirrors. | 429 /// Set by the backend if real reflection is detected in use of dart:mirrors. |
429 bool disableTypeInferenceForMirrors = false; | 430 bool disableTypeInferenceForMirrors = false; |
430 | 431 |
431 Compiler({this.enableTypeAssertions: false, | 432 Compiler({this.enableTypeAssertions: false, |
432 this.enableUserAssertions: false, | 433 this.enableUserAssertions: false, |
433 this.trustTypeAnnotations: false, | 434 this.trustTypeAnnotations: false, |
434 this.trustPrimitives: false, | 435 this.trustPrimitives: false, |
| 436 this.trustJSInteropTypeAnnotations: false, |
435 bool disableTypeInferenceFlag: false, | 437 bool disableTypeInferenceFlag: false, |
436 this.maxConcreteTypeSize: 5, | 438 this.maxConcreteTypeSize: 5, |
437 this.enableMinification: false, | 439 this.enableMinification: false, |
438 this.preserveUris: false, | 440 this.preserveUris: false, |
439 this.enableNativeLiveTypeAnalysis: false, | 441 this.enableNativeLiveTypeAnalysis: false, |
440 bool emitJavaScript: true, | 442 bool emitJavaScript: true, |
441 bool dart2dartMultiFile: false, | 443 bool dart2dartMultiFile: false, |
442 bool generateSourceMap: true, | 444 bool generateSourceMap: true, |
443 bool analyzeAllFlag: false, | 445 bool analyzeAllFlag: false, |
444 bool analyzeOnly: false, | 446 bool analyzeOnly: false, |
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2041 if (_otherDependencies == null) { | 2043 if (_otherDependencies == null) { |
2042 _otherDependencies = new Setlet<Element>(); | 2044 _otherDependencies = new Setlet<Element>(); |
2043 } | 2045 } |
2044 _otherDependencies.add(element.implementation); | 2046 _otherDependencies.add(element.implementation); |
2045 } | 2047 } |
2046 | 2048 |
2047 Iterable<Element> get otherDependencies { | 2049 Iterable<Element> get otherDependencies { |
2048 return _otherDependencies != null ? _otherDependencies : const <Element>[]; | 2050 return _otherDependencies != null ? _otherDependencies : const <Element>[]; |
2049 } | 2051 } |
2050 } | 2052 } |
OLD | NEW |