Index: tests/compiler/dart2js/message_kind_helper.dart |
diff --git a/tests/compiler/dart2js/message_kind_helper.dart b/tests/compiler/dart2js/message_kind_helper.dart |
index af32b58ceb8e621f9707769cb6ccef2dfeb865ef..12089cfcb91c7005ef602416cf4d52c6d70e7aa8 100644 |
--- a/tests/compiler/dart2js/message_kind_helper.dart |
+++ b/tests/compiler/dart2js/message_kind_helper.dart |
@@ -7,6 +7,7 @@ library dart2js.test.message_kind_helper; |
import 'package:expect/expect.dart'; |
import 'dart:async'; |
+import 'package:compiler/src/commandline_options.dart'; |
import 'package:compiler/src/compiler.dart' show |
Compiler; |
import 'package:compiler/src/dart_backend/dart_backend.dart' show |
@@ -84,8 +85,8 @@ Future<Compiler> check(MessageTemplate template, Compiler cachedCompiler) { |
Compiler compiler = compilerFor( |
memorySourceFiles: example, |
diagnosticHandler: new LegacyCompilerDiagnostics(collect), |
- options: ['--analyze-only', |
- '--enable-experimental-mirrors']..addAll(template.options), |
+ options: [Flags.analyzeOnly, |
+ Flags.enableExperimentalMirrors]..addAll(template.options), |
cachedCompiler: |
// TODO(johnniwinther): Remove this restriction when constant |
// values can be computed directly from the expressions. |