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

Unified Diff: sdk/lib/_internal/pub/lib/src/barback/sources.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 | « sdk/lib/_internal/pub/lib/src/barback.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/pub/lib/src/barback/sources.dart
diff --git a/sdk/lib/_internal/pub/lib/src/barback/sources.dart b/sdk/lib/_internal/pub/lib/src/barback/sources.dart
index 0179591b45bcd48c06e5136c1c3e3985b1e7761e..ece690b52d18da8e32391cc7ffa6bc950dff36d2 100644
--- a/sdk/lib/_internal/pub/lib/src/barback/sources.dart
+++ b/sdk/lib/_internal/pub/lib/src/barback/sources.dart
@@ -23,7 +23,8 @@ import '../package_graph.dart';
///
/// Returns a Future that completes when the sources are loaded and the watchers
/// are active.
-Future watchSources(PackageGraph graph, Barback barback, WatcherType watcher) {
+Future watchSources(PackageGraph graph, Barback barback,
+ WatcherType watcherType) {
return Future.wait(graph.packages.values.map((package) {
// If this package comes from a cached source, its contents won't change so
// we don't need to monitor it. `packageId` will be null for the application
@@ -42,7 +43,7 @@ Future watchSources(PackageGraph graph, Barback barback, WatcherType watcher) {
if (!dirExists(subdirectory)) return new Future.value();
// TODO(nweiz): close these watchers when [barback] is closed.
- var watcher = watcher.create(subdirectory);
+ var watcher = watcherType.create(subdirectory);
watcher.events.listen((event) {
// Don't watch files symlinked into these directories.
// TODO(rnystrom): If pub gets rid of symlinks, remove this.
@@ -142,7 +143,7 @@ class _PollingWatcherType implements WatcherType {
String toString() => "polling";
}
-class _NoneWatcherType implements {
+class _NoneWatcherType implements WatcherType {
const _NoneWatcherType();
DirectoryWatcher create(String directory) => null;
« no previous file with comments | « sdk/lib/_internal/pub/lib/src/barback.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698