| Index: tests/compiler/dart2js/kernel/helper.dart
|
| diff --git a/tests/compiler/dart2js/kernel/helper.dart b/tests/compiler/dart2js/kernel/helper.dart
|
| index 30512d8c496e5fa7a4a10ecfce83d5b3d9fa11b8..4e89025f6dc6df0ca875abe1ab602d772a9f74e2 100644
|
| --- a/tests/compiler/dart2js/kernel/helper.dart
|
| +++ b/tests/compiler/dart2js/kernel/helper.dart
|
| @@ -6,14 +6,15 @@ import 'dart:async';
|
|
|
| import 'package:compiler/src/compiler.dart' show Compiler;
|
| import 'package:compiler/src/elements/elements.dart' show Element;
|
| -import 'package:compiler/src/js_backend/backend.dart' as js show JavaScriptBackend;
|
| +import 'package:compiler/src/js_backend/backend.dart' as js
|
| + show JavaScriptBackend;
|
| import 'package:compiler/src/commandline_options.dart' show Flags;
|
| import 'package:test/test.dart';
|
|
|
| import '../memory_compiler.dart';
|
|
|
| -Future<String> compile(String code, {String entry: 'main',
|
| - bool useKernel: true}) async {
|
| +Future<String> compile(String code,
|
| + {String entry: 'main', bool useKernel: true}) async {
|
| List<String> options = <String>[
|
| Flags.disableTypeInference,
|
| Flags.disableInlining,
|
| @@ -24,8 +25,7 @@ Future<String> compile(String code, {String entry: 'main',
|
| code = "$code\n\nmain() => $entry;";
|
| }
|
| CompilationResult result = await runCompiler(
|
| - memorySourceFiles: {'main.dart': code},
|
| - options: options);
|
| + memorySourceFiles: {'main.dart': code}, options: options);
|
| expect(result.isSuccess, isTrue);
|
| Compiler compiler = result.compiler;
|
| Element element = compiler.mainApp.find(entry);
|
|
|