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

Unified Diff: dart/pkg/dart2js_incremental/lib/compiler.dart

Issue 847573003: Push updates to browser. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Update package:browser version. Created 5 years, 11 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
« no previous file with comments | « dart/pkg/browser/pubspec.yaml ('k') | dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/dart2js_incremental/lib/compiler.dart
diff --git a/dart/pkg/dart2js_incremental/lib/compiler.dart b/dart/pkg/dart2js_incremental/lib/compiler.dart
index 22d6130d6b8f9e19a8e112e795f89d9bd7a4be0a..6e866674542ea5fb4b222cd7475ef45eba2efe3d 100644
--- a/dart/pkg/dart2js_incremental/lib/compiler.dart
+++ b/dart/pkg/dart2js_incremental/lib/compiler.dart
@@ -92,7 +92,9 @@ compileToStream(
Future inputProvider(Uri uri) {
if (uri.scheme == "file") {
- watcher.watchFile(uri);
+ if (!'$uri'.startsWith('$libraryRoot')) {
+ watcher.watchFile(uri);
+ }
}
return diagnosticHandler.provider(uri);
}
@@ -123,13 +125,13 @@ compileToStream(
Map<Uri, Uri> changes = watcher.readChanges();
sw = new Stopwatch()..start();
- await compiler.compileUpdates(changes);
+ String updates = await compiler.compileUpdates(changes);
sw.stop();
controller.add(
new CompilerEvent(
IncrementalKind.INCREMENTAL, compiler, outputProvider.output,
- sw));
+ sw, updates: updates));
} on IncrementalCompilationFailed catch (error, trace) {
controller.addError(error, trace);
@@ -192,7 +194,10 @@ class CompilerEvent {
final Stopwatch stopwatch;
- CompilerEvent(this.kind, this.compiler, this._output, this.stopwatch);
+ final String updates;
+
+ CompilerEvent(
+ this.kind, this.compiler, this._output, this.stopwatch, {this.updates});
String operator[](String key) => _output[key];
}
« no previous file with comments | « dart/pkg/browser/pubspec.yaml ('k') | dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698