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 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
387 * Is the compiler in verbose mode. | 387 * Is the compiler in verbose mode. |
388 */ | 388 */ |
389 final bool verbose; | 389 final bool verbose; |
390 | 390 |
391 /** | 391 /** |
392 * URI of the main source map if the compiler is generating source | 392 * URI of the main source map if the compiler is generating source |
393 * maps. | 393 * maps. |
394 */ | 394 */ |
395 final Uri sourceMapUri; | 395 final Uri sourceMapUri; |
396 | 396 |
| 397 /** |
| 398 * URI of the main output if the compiler is generating source maps. |
| 399 */ |
| 400 final Uri outputUri; |
| 401 |
397 /// Emit terse diagnostics without howToFix. | 402 /// Emit terse diagnostics without howToFix. |
398 final bool terseDiagnostics; | 403 final bool terseDiagnostics; |
399 | 404 |
400 /// If `true`, warnings and hints not from user code are reported. | 405 /// If `true`, warnings and hints not from user code are reported. |
401 final bool showPackageWarnings; | 406 final bool showPackageWarnings; |
402 | 407 |
403 /// `true` if the last diagnostic was filtered, in which case the | 408 /// `true` if the last diagnostic was filtered, in which case the |
404 /// accompanying info message should be filtered as well. | 409 /// accompanying info message should be filtered as well. |
405 bool lastDiagnosticWasFiltered = false; | 410 bool lastDiagnosticWasFiltered = false; |
406 | 411 |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
620 this.enableMinification: false, | 625 this.enableMinification: false, |
621 this.enableNativeLiveTypeAnalysis: false, | 626 this.enableNativeLiveTypeAnalysis: false, |
622 bool emitJavaScript: true, | 627 bool emitJavaScript: true, |
623 bool generateSourceMap: true, | 628 bool generateSourceMap: true, |
624 this.analyzeAllFlag: false, | 629 this.analyzeAllFlag: false, |
625 bool analyzeOnly: false, | 630 bool analyzeOnly: false, |
626 bool analyzeSignaturesOnly: false, | 631 bool analyzeSignaturesOnly: false, |
627 this.preserveComments: false, | 632 this.preserveComments: false, |
628 this.verbose: false, | 633 this.verbose: false, |
629 this.sourceMapUri: null, | 634 this.sourceMapUri: null, |
| 635 this.outputUri: null, |
630 this.buildId: UNDETERMINED_BUILD_ID, | 636 this.buildId: UNDETERMINED_BUILD_ID, |
631 this.terseDiagnostics: false, | 637 this.terseDiagnostics: false, |
632 this.dumpInfo: false, | 638 this.dumpInfo: false, |
633 this.showPackageWarnings: false, | 639 this.showPackageWarnings: false, |
634 outputProvider, | 640 outputProvider, |
635 List<String> strips: const []}) | 641 List<String> strips: const []}) |
636 : this.analyzeOnly = analyzeOnly || analyzeSignaturesOnly, | 642 : this.analyzeOnly = analyzeOnly || analyzeSignaturesOnly, |
637 this.analyzeSignaturesOnly = analyzeSignaturesOnly, | 643 this.analyzeSignaturesOnly = analyzeSignaturesOnly, |
638 this.outputProvider = (outputProvider == null) | 644 this.outputProvider = (outputProvider == null) |
639 ? NullSink.outputProvider | 645 ? NullSink.outputProvider |
(...skipping 1176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1816 static NullSink outputProvider(String name, String extension) { | 1822 static NullSink outputProvider(String name, String extension) { |
1817 return new NullSink('$name.$extension'); | 1823 return new NullSink('$name.$extension'); |
1818 } | 1824 } |
1819 } | 1825 } |
1820 | 1826 |
1821 /// Information about suppressed warnings and hints for a given library. | 1827 /// Information about suppressed warnings and hints for a given library. |
1822 class SuppressionInfo { | 1828 class SuppressionInfo { |
1823 int warnings = 0; | 1829 int warnings = 0; |
1824 int hints = 0; | 1830 int hints = 0; |
1825 } | 1831 } |
OLD | NEW |