Fix incremental_reload example after VmReloader -> RemoteVm rename.

TBR

There were 2 compilation errors and 1 hint.
I prefer when my workspace is error free :-)

R=ahe@google.com, paulberry@google.com, sigmund@google.com
BUG=

Review-Url: https://codereview.chromium.org/2975793005 .
This commit is contained in:
Konstantin Shcheglov 2017-07-11 12:11:55 -07:00
parent c393e9bbbd
commit fac4d2d603

View file

@ -50,7 +50,7 @@ import '../../tool/vm/reload.dart';
import 'compiler_with_invalidation.dart';
VmReloader reloader = new VmReloader();
RemoteVm remoteVm = new RemoteVm();
AnsiTerminal terminal = new AnsiTerminal();
main(List<String> args) async {
@ -64,7 +64,7 @@ main(List<String> args) async {
showHeader();
listenOnKeyPress(compiler, outputUri)
.whenComplete(() => reloader.disconnect());
.whenComplete(() => remoteVm.disconnect());
}
/// Implements the interactive UI by listening for input keys from the user.
@ -122,7 +122,7 @@ Future listenOnKeyPress(IncrementalCompiler compiler, Uri outputUri) {
Future<ReloadResult> reload(outputUri) async {
var result = new ReloadResult();
var reloadTimer = new Stopwatch()..start();
var reloadResult = await reloader.reload(outputUri);
var reloadResult = await remoteVm.reload(outputUri);
reloadTimer.stop();
result.reloadTime = reloadTimer.elapsedMilliseconds;
result.errorSeen = false;