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

Unified Diff: pkg/analyzer/lib/file_system/physical_file_system.dart

Issue 2782463003: Fix for DirectoryWatcher.handleError() closure signature. (Closed)
Patch Set: Created 3 years, 9 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/file_system/physical_file_system.dart
diff --git a/pkg/analyzer/lib/file_system/physical_file_system.dart b/pkg/analyzer/lib/file_system/physical_file_system.dart
index f3906be89b2ffff8c81dc929504dfe1bd9cfc848..f941252889b0a446a621eb165c3e9fc3df6e9ece 100644
--- a/pkg/analyzer/lib/file_system/physical_file_system.dart
+++ b/pkg/analyzer/lib/file_system/physical_file_system.dart
@@ -234,9 +234,9 @@ class _PhysicalFolder extends _PhysicalResource implements Folder {
_PhysicalFolder(io.Directory directory) : super(directory);
@override
- Stream<WatchEvent> get changes => new DirectoryWatcher(_entry.path)
- .events
- .handleError(() {}, test: (error) => error is io.FileSystemException);
+ Stream<WatchEvent> get changes =>
+ new DirectoryWatcher(_entry.path).events.handleError((error) {},
+ test: (error) => error is io.FileSystemException);
/**
* Return the underlying file being represented by this wrapper.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698