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

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

Issue 22284003: pkg: analysis aided cleanup (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: nits Created 7 years, 4 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 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; 5 library watcher.directory_watcher;
6 6
7 import 'dart:async'; 7 import 'dart:async';
8 import 'dart:collection';
9 import 'dart:io'; 8 import 'dart:io';
10 9
11 import 'package:crypto/crypto.dart'; 10 import 'package:crypto/crypto.dart';
12 11
13 import 'async_queue.dart'; 12 import 'async_queue.dart';
14 import 'stat.dart'; 13 import 'stat.dart';
15 import 'watch_event.dart'; 14 import 'watch_event.dart';
16 15
17 /// Watches the contents of a directory and emits [WatchEvent]s when something 16 /// Watches the contents of a directory and emits [WatchEvent]s when something
18 /// in the directory has changed. 17 /// in the directory has changed.
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 258
260 class _FileStatus { 259 class _FileStatus {
261 /// The last time the file was modified. 260 /// The last time the file was modified.
262 DateTime modified; 261 DateTime modified;
263 262
264 /// The SHA-1 hash of the contents of the file. 263 /// The SHA-1 hash of the contents of the file.
265 List<int> hash; 264 List<int> hash;
266 265
267 _FileStatus(this.modified, this.hash); 266 _FileStatus(this.modified, this.hash);
268 } 267 }
OLDNEW
« no previous file with comments | « pkg/unmodifiable_collection/test/unmodifiable_collection_test.dart ('k') | pkg/watcher/test/directory_watcher_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698