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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback.dart

Issue 66133002: Add a missing type name. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix more stuff Created 7 years, 1 month 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 | « no previous file | sdk/lib/_internal/pub/lib/src/barback/sources.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/barback.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback.dart b/sdk/lib/_internal/pub/lib/src/barback.dart
index b543876c3d5486e848eab887a10cbefddc3f0793..52b97794cb3877d99df080e3405cb72bd9318367 100644
--- a/sdk/lib/_internal/pub/lib/src/barback.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback.dart
@@ -119,15 +119,11 @@ Future<BarbackServer> createServer(String host, int port, PackageGraph graph,
return BarbackServer.bind(host, port, barback, graph.entrypoint.root.name)
.then((server) {
return new Future.sync(() {
- if (watcher == WatcherType.NONE) {
- loadSources(graph, barback);
- return;
+ if (watcher != WatcherType.NONE) {
+ return watchSources(graph, barback, watcher);
}
- return watchSources(graph, barback, (directory) {
- if (watcher == WatcherType.AUTO) return new DirectoryWatcher(directory);
- return new PollingDirectoryWatcher(directory);
- });
+ loadSources(graph, barback);
}).then((_) {
var completer = new Completer();
« no previous file with comments | « no previous file | sdk/lib/_internal/pub/lib/src/barback/sources.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698