Index: pkg/fletchc/lib/incremental/fletchc_incremental.dart |
diff --git a/pkg/fletchc/lib/incremental/fletchc_incremental.dart b/pkg/fletchc/lib/incremental/fletchc_incremental.dart |
index a54b9b41655732b3b93892603176aa49029e3011..f621570bcd7fee123f495294b3301638456ad297 100644 |
--- a/pkg/fletchc/lib/incremental/fletchc_incremental.dart |
+++ b/pkg/fletchc/lib/incremental/fletchc_incremental.dart |
@@ -12,7 +12,7 @@ import 'dart:developer' show |
UserTag; |
import 'package:compiler/src/apiimpl.dart' show |
- Compiler; |
+ CompilerImpl; |
import 'package:compiler/compiler_new.dart' show |
CompilerDiagnostics, |
@@ -143,13 +143,13 @@ class IncrementalCompiler { |
/// compiler. |
Future<bool> compile(Uri script) { |
_compiler = null; |
- return _reuseCompiler(null).then((Compiler compiler) { |
+ return _reuseCompiler(null).then((CompilerImpl compiler) { |
_compiler = compiler; |
return compiler.run(script); |
}); |
} |
- Future<Compiler> _reuseCompiler( |
+ Future<CompilerImpl> _reuseCompiler( |
Future<bool> reuseLibrary(LibraryElement library)) { |
List<String> options = this.options == null |
? <String> [] : new List<String>.from(this.options); |
@@ -202,7 +202,8 @@ class IncrementalCompiler { |
logVerbose, |
_context); |
_context.registerUriWithUpdates(updatedFiles.keys); |
- return _reuseCompiler(updater.reuseLibrary).then((Compiler compiler) async { |
+ return _reuseCompiler(updater.reuseLibrary).then( |
+ (CompilerImpl compiler) async { |
_compiler = compiler; |
FletchDelta delta = await updater.computeUpdateFletch(currentSystem); |
_checkCompilationFailed(); |