OLD | NEW |
---|---|
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2017, 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 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
7 import 'package:front_end/compilation_message.dart'; | 7 import 'package:front_end/compilation_message.dart'; |
8 import 'package:front_end/compiler_options.dart'; | 8 import 'package:front_end/compiler_options.dart'; |
9 import 'package:front_end/file_system.dart'; | 9 import 'package:front_end/file_system.dart'; |
10 import 'package:front_end/src/base/performace_logger.dart'; | 10 import 'package:front_end/src/base/performace_logger.dart'; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
112 bool get verbose => _raw.verbose; | 112 bool get verbose => _raw.verbose; |
113 | 113 |
114 bool get verify => _raw.verify; | 114 bool get verify => _raw.verify; |
115 | 115 |
116 bool get debugDump => _raw.debugDump; | 116 bool get debugDump => _raw.debugDump; |
117 | 117 |
118 bool get setExitCodeOnProblem => _raw.setExitCodeOnProblem; | 118 bool get setExitCodeOnProblem => _raw.setExitCodeOnProblem; |
119 | 119 |
120 bool get embedSourceText => _raw.embedSourceText; | 120 bool get embedSourceText => _raw.embedSourceText; |
121 | 121 |
122 bool get throwOnErrors => _raw.throwOnErrors; | 122 bool get throwOnErrorsForDebugging => _raw.throwOnErrorsForDebugging; |
123 | 123 |
124 bool get throwOnWarnings => _raw.throwOnWarnings; | 124 bool get throwOnWarningsForDebugging => _raw.throwOnWarningsForDebugging; |
125 | 125 |
126 bool get throwOnNits => _raw.throwOnNits; | 126 bool get throwOnNitsForDebugging => _raw.throwOnNitsForDebugging; |
127 | 127 |
128 /// Like [CompilerOptions.chaseDependencies] but with the appropriate default | 128 /// Like [CompilerOptions.chaseDependencies] but with the appropriate default |
129 /// value filled in. | 129 /// value filled in. |
130 bool get chaseDependencies => _raw.chaseDependencies ?? !_modularApi; | 130 bool get chaseDependencies => _raw.chaseDependencies ?? !_modularApi; |
131 | 131 |
132 /// Whether the compiler was invoked with a modular API. | 132 /// Whether the compiler was invoked with a modular API. |
133 /// | 133 /// |
134 /// Used to determine the default behavior for [chaseDependencies]. | 134 /// Used to determine the default behavior for [chaseDependencies]. |
135 final bool _modularApi; | 135 final bool _modularApi; |
136 | 136 |
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
541 '${_raw.onError == null ? "no" : "yes"}'); | 541 '${_raw.onError == null ? "no" : "yes"}'); |
542 | 542 |
543 sb.writeln('FileSystem: ${_fileSystem.runtimeType} ' | 543 sb.writeln('FileSystem: ${_fileSystem.runtimeType} ' |
544 '(provided: ${_raw.fileSystem.runtimeType})'); | 544 '(provided: ${_raw.fileSystem.runtimeType})'); |
545 | 545 |
546 writeList('Input Summaries', _raw.inputSummaries); | 546 writeList('Input Summaries', _raw.inputSummaries); |
547 writeList('Linked Dependencies', _raw.linkedDependencies); | 547 writeList('Linked Dependencies', _raw.linkedDependencies); |
548 writeList('Multiroots', _raw.multiRoots); | 548 writeList('Multiroots', _raw.multiRoots); |
549 | 549 |
550 sb.writeln('Modular: ${_modularApi}'); | 550 sb.writeln('Modular: ${_modularApi}'); |
551 sb.writeln('Hermetic: ${!chaseDependencies}' | 551 sb.writeln('Hermetic: ${!chaseDependencies} (provided: ' |
552 ' (provided: ${!_raw.chaseDependencies})'); | 552 '${_raw.chaseDependencies == null ? null : !_raw.chaseDependencies})'); |
Siggi Cherem (dart-lang)
2017/08/24 18:34:36
thanks - I also have this in a local branch and fo
| |
553 sb.writeln('Packages uri: ${_raw.packagesFileUri}'); | 553 sb.writeln('Packages uri: ${_raw.packagesFileUri}'); |
554 sb.writeln('Packages: ${_packages}'); | 554 sb.writeln('Packages: ${_packages}'); |
555 | 555 |
556 sb.writeln('Compile SDK: ${compileSdk}'); | 556 sb.writeln('Compile SDK: ${compileSdk}'); |
557 sb.writeln('SDK root: ${_sdkRoot} (provided: ${_raw.sdkRoot})'); | 557 sb.writeln('SDK root: ${_sdkRoot} (provided: ${_raw.sdkRoot})'); |
558 sb.writeln('SDK specification: ${_librariesSpecificationUri} ' | 558 sb.writeln('SDK specification: ${_librariesSpecificationUri} ' |
559 '(provided: ${_raw.librariesSpecificationUri})'); | 559 '(provided: ${_raw.librariesSpecificationUri})'); |
560 sb.writeln('SDK summary: ${_sdkSummary} (provided: ${_raw.sdkSummary})'); | 560 sb.writeln('SDK summary: ${_sdkSummary} (provided: ${_raw.sdkSummary})'); |
561 | 561 |
562 sb.writeln('Strong: ${strongMode}'); | 562 sb.writeln('Strong: ${strongMode}'); |
563 sb.writeln('Target: ${_target?.name} (provided: ${_raw.target?.name})'); | 563 sb.writeln('Target: ${_target?.name} (provided: ${_raw.target?.name})'); |
564 | 564 |
565 sb.writeln('throwOnErrorsAreFatal: ${throwOnErrors}'); | 565 sb.writeln('throwOnErrorsForDebugging: ${throwOnErrorsForDebugging}'); |
566 sb.writeln('throwOnWarningsAreFatal: ${throwOnWarnings}'); | 566 sb.writeln('throwOnWarningsForDebugging: ${throwOnWarningsForDebugging}'); |
567 sb.writeln('throwOnNits: ${throwOnNits}'); | 567 sb.writeln('throwOnNitsForDebugging: ${throwOnNitsForDebugging}'); |
568 sb.writeln('exit on problem: ${setExitCodeOnProblem}'); | 568 sb.writeln('exit on problem: ${setExitCodeOnProblem}'); |
569 sb.writeln('Embed sources: ${embedSourceText}'); | 569 sb.writeln('Embed sources: ${embedSourceText}'); |
570 sb.writeln('debugDump: ${debugDump}'); | 570 sb.writeln('debugDump: ${debugDump}'); |
571 sb.writeln('verbose: ${verbose}'); | 571 sb.writeln('verbose: ${verbose}'); |
572 sb.writeln('verify: ${verify}'); | 572 sb.writeln('verify: ${verify}'); |
573 return '$sb'; | 573 return '$sb'; |
574 } | 574 } |
575 } | 575 } |
576 | 576 |
577 /// A [FileSystem] that only allows access to files that have been explicitly | 577 /// A [FileSystem] that only allows access to files that have been explicitly |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
614 String get dart2jsCode => _original.code.dart2jsCode; | 614 String get dart2jsCode => _original.code.dart2jsCode; |
615 | 615 |
616 SourceSpan get span => | 616 SourceSpan get span => |
617 new SourceLocation(_original.charOffset, sourceUrl: _original.uri) | 617 new SourceLocation(_original.charOffset, sourceUrl: _original.uri) |
618 .pointSpan(); | 618 .pointSpan(); |
619 | 619 |
620 _CompilationMessage(this._original, this.severity); | 620 _CompilationMessage(this._original, this.severity); |
621 | 621 |
622 String toString() => message; | 622 String toString() => message; |
623 } | 623 } |
OLD | NEW |