Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(23)

Unified Diff: pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart

Issue 1803303002: Move all flags to CompilerOptions (first step to stop passing the compiler to (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
index a0b9b48febbbf092a5110f6b4422ed9c347de940..d2dd9fd125cef5ae0ee6b746f6b3c13d42362f03 100644
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart
@@ -193,7 +193,9 @@ class ModelEmitter {
String buildGeneratedBy(compiler) {
var suffix = '';
- if (compiler.hasBuildId) suffix = ' version: ${compiler.buildId}';
+ if (compiler.options.hasBuildId) {
+ suffix = ' version: ${compiler.options.buildId}';
+ }
return '// Generated by dart2js, the Dart to JavaScript compiler$suffix.\n';
}

Powered by Google App Engine
This is Rietveld 408576698