Files
sdk/pkg/front_end/tool/_fasta/bulk_compile_test.dart
T
G?nter Z?chbauer 2da0b9f4f1 fix some typos
Closes #34738
https://github.com/dart-lang/sdk/pull/34738

GitOrigin-RevId: d211bbacfe65355cf7304c990ffb6c79d7a229cf
Change-Id: If690e6d378e543b300e1f6a353ceae73e39c29db
Reviewed-on: https://dart-review.googlesource.com/c/78900
Reviewed-by: Alexander Thomas <athom@google.com>
2018-10-10 19:15:30 +00:00

29 lines
1004 B
Dart

// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
import 'dart:isolate' show ReceivePort;
import 'package:front_end/src/api_prototype/compiler_options.dart'
show CompilerOptions;
import 'bulk_compile.dart' show BulkCompiler;
testCompiler() async {
BulkCompiler compiler = new BulkCompiler(new CompilerOptions()
..debugDump = true
..verbose = true);
await compiler.compile("main() { print('Hello, World!'); }");
await compiler.compile(
// This example is a regression test of lazy loading of FunctionNode
// which would break when this is preceded by hello-world.
"main() { [].map(); }");
await compiler.compile("main() { print('Hello, Brave New World!'); }");
await compiler.compile("import 'package';");
}
main() {
var port = new ReceivePort();
testCompiler().whenComplete(port.close);
}