| 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 part of dart2js; | 5 part of dart2js; |
| 6 | 6 |
| 7 /** | 7 /** |
| 8 * If true, print a warning for each method that was resolved, but not | 8 * If true, print a warning for each method that was resolved, but not |
| 9 * compiled. | 9 * compiled. |
| 10 */ | 10 */ |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 */ | 352 */ |
| 353 final TreeElements globalDependencies = new TreeElementMapping(null); | 353 final TreeElements globalDependencies = new TreeElementMapping(null); |
| 354 | 354 |
| 355 final bool enableMinification; | 355 final bool enableMinification; |
| 356 final bool enableTypeAssertions; | 356 final bool enableTypeAssertions; |
| 357 final bool enableUserAssertions; | 357 final bool enableUserAssertions; |
| 358 final bool trustTypeAnnotations; | 358 final bool trustTypeAnnotations; |
| 359 final bool enableConcreteTypeInference; | 359 final bool enableConcreteTypeInference; |
| 360 final bool disableTypeInferenceFlag; | 360 final bool disableTypeInferenceFlag; |
| 361 final bool dumpInfo; | 361 final bool dumpInfo; |
| 362 final bool useContentSecurityPolicy; |
| 362 | 363 |
| 363 /** | 364 /** |
| 364 * The maximum size of a concrete type before it widens to dynamic during | 365 * The maximum size of a concrete type before it widens to dynamic during |
| 365 * concrete type inference. | 366 * concrete type inference. |
| 366 */ | 367 */ |
| 367 final int maxConcreteTypeSize; | 368 final int maxConcreteTypeSize; |
| 368 final bool analyzeAllFlag; | 369 final bool analyzeAllFlag; |
| 369 final bool analyzeOnly; | 370 final bool analyzeOnly; |
| 370 /** | 371 /** |
| 371 * If true, skip analysis of method bodies and field initializers. Implies | 372 * If true, skip analysis of method bodies and field initializers. Implies |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 631 bool analyzeOnly: false, | 632 bool analyzeOnly: false, |
| 632 bool analyzeSignaturesOnly: false, | 633 bool analyzeSignaturesOnly: false, |
| 633 this.preserveComments: false, | 634 this.preserveComments: false, |
| 634 this.verbose: false, | 635 this.verbose: false, |
| 635 this.sourceMapUri: null, | 636 this.sourceMapUri: null, |
| 636 this.outputUri: null, | 637 this.outputUri: null, |
| 637 this.buildId: UNDETERMINED_BUILD_ID, | 638 this.buildId: UNDETERMINED_BUILD_ID, |
| 638 this.terseDiagnostics: false, | 639 this.terseDiagnostics: false, |
| 639 this.dumpInfo: false, | 640 this.dumpInfo: false, |
| 640 this.showPackageWarnings: false, | 641 this.showPackageWarnings: false, |
| 642 this.useContentSecurityPolicy: false, |
| 641 outputProvider, | 643 outputProvider, |
| 642 List<String> strips: const []}) | 644 List<String> strips: const []}) |
| 643 : this.analyzeOnly = | 645 : this.analyzeOnly = |
| 644 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, | 646 analyzeOnly || analyzeSignaturesOnly || analyzeAllFlag, |
| 645 this.analyzeSignaturesOnly = analyzeSignaturesOnly, | 647 this.analyzeSignaturesOnly = analyzeSignaturesOnly, |
| 646 this.analyzeAllFlag = analyzeAllFlag, | 648 this.analyzeAllFlag = analyzeAllFlag, |
| 647 this.outputProvider = (outputProvider == null) | 649 this.outputProvider = (outputProvider == null) |
| 648 ? NullSink.outputProvider | 650 ? NullSink.outputProvider |
| 649 : outputProvider { | 651 : outputProvider { |
| 650 world = new World(this); | 652 world = new World(this); |
| (...skipping 1140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1791 static NullSink outputProvider(String name, String extension) { | 1793 static NullSink outputProvider(String name, String extension) { |
| 1792 return new NullSink('$name.$extension'); | 1794 return new NullSink('$name.$extension'); |
| 1793 } | 1795 } |
| 1794 } | 1796 } |
| 1795 | 1797 |
| 1796 /// Information about suppressed warnings and hints for a given library. | 1798 /// Information about suppressed warnings and hints for a given library. |
| 1797 class SuppressionInfo { | 1799 class SuppressionInfo { |
| 1798 int warnings = 0; | 1800 int warnings = 0; |
| 1799 int hints = 0; | 1801 int hints = 0; |
| 1800 } | 1802 } |
| OLD | NEW |