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

Side by Side Diff: pkg/watcher/lib/src/directory_watcher/polling.dart

Issue 69013003: Fix some analyzer warnings and hints in pkg/watcher. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library watcher.directory_watcher.polling; 5 library watcher.directory_watcher.polling;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:io'; 8 import 'dart:io';
9 9
10 import 'package:crypto/crypto.dart'; 10 import 'package:crypto/crypto.dart';
11 11
12 import '../async_queue.dart'; 12 import '../async_queue.dart';
13 import '../directory_watcher.dart';
14 import '../stat.dart'; 13 import '../stat.dart';
15 import '../utils.dart'; 14 import '../utils.dart';
16 import '../watch_event.dart'; 15 import '../watch_event.dart';
17 import 'resubscribable.dart'; 16 import 'resubscribable.dart';
18 17
19 /// Periodically polls a directory for changes. 18 /// Periodically polls a directory for changes.
20 class PollingDirectoryWatcher extends ResubscribableDirectoryWatcher { 19 class PollingDirectoryWatcher extends ResubscribableDirectoryWatcher {
21 /// Creates a new polling watcher monitoring [directory]. 20 /// Creates a new polling watcher monitoring [directory].
22 /// 21 ///
23 /// If [_pollingDelay] is passed, it specifies the amount of time the watcher 22 /// If [_pollingDelay] is passed, it specifies the amount of time the watcher
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 class _FileStatus { 207 class _FileStatus {
209 /// The last time the file was modified. 208 /// The last time the file was modified.
210 DateTime modified; 209 DateTime modified;
211 210
212 /// The SHA-1 hash of the contents of the file. 211 /// The SHA-1 hash of the contents of the file.
213 List<int> hash; 212 List<int> hash;
214 213
215 _FileStatus(this.modified, this.hash); 214 _FileStatus(this.modified, this.hash);
216 } 215 }
217 216
OLDNEW
« no previous file with comments | « pkg/watcher/lib/src/directory_watcher/mac_os.dart ('k') | pkg/watcher/lib/src/directory_watcher/resubscribable.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698