Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(114)

Unified Diff: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart

Issue 2928483005: Add an incremental reloader example and a utility tool to trigger a reload by (Closed)
Patch Set: CL comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
diff --git a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
index e56b5d1bc82b5d0ce850237d5d7738accb604350..39930073fdf8a50070e64340bbb26d9eb9c59f9c 100644
--- a/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
+++ b/pkg/front_end/lib/src/incremental_kernel_generator_impl.dart
@@ -23,11 +23,6 @@ import 'package:kernel/kernel.dart' hide Source;
import 'package:kernel/target/targets.dart' show TargetFlags;
import 'package:kernel/target/vm_fasta.dart' show VmFastaTarget;
-dynamic unimplemented() {
- // TODO(paulberry): get rid of this.
- throw new UnimplementedError();
-}
-
class ByteSink implements Sink<List<int>> {
final BytesBuilder builder = new BytesBuilder();
@@ -133,6 +128,8 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
}
}
+ if (watch != null) _fsState.fileUris.forEach((f) => watch(f, true));
+
// TODO(scheglov) Add libraries which import changed libraries.
// For now the corresponding test works because we use full library
// contents to compute signatures (not just API parts). So, every library
@@ -158,7 +155,9 @@ class IncrementalKernelGeneratorImpl implements IncrementalKernelGenerator {
}
@override
- void invalidateAll() => unimplemented();
+ void invalidateAll() {
+ _invalidatedFiles.addAll(_fsState.fileUris);
+ }
/// Ensure that [dillTarget] includes the [cycle] libraries. It already
/// contains all the libraries that sorted before the given [cycle] in

Powered by Google App Engine
This is Rietveld 408576698