| OLD | NEW |
| 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.constructable_file_system_event; | 5 library watcher.constructable_file_system_event; |
| 6 | 6 |
| 7 import 'dart:io'; | 7 import 'dart:io'; |
| 8 | 8 |
| 9 abstract class _ConstructableFileSystemEvent implements FileSystemEvent { | 9 abstract class _ConstructableFileSystemEvent implements FileSystemEvent { |
| 10 final bool isDirectory; | 10 final bool isDirectory; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 String toString() => "FileSystemDeleteEvent('$path')"; | 34 String toString() => "FileSystemDeleteEvent('$path')"; |
| 35 } | 35 } |
| 36 | 36 |
| 37 class ConstructableFileSystemModifyEvent extends _ConstructableFileSystemEvent | 37 class ConstructableFileSystemModifyEvent extends _ConstructableFileSystemEvent |
| 38 implements FileSystemModifyEvent { | 38 implements FileSystemModifyEvent { |
| 39 final bool contentChanged; | 39 final bool contentChanged; |
| 40 final type = FileSystemEvent.MODIFY; | 40 final type = FileSystemEvent.MODIFY; |
| 41 | 41 |
| 42 ConstructableFileSystemModifyEvent(String path, bool isDirectory, | 42 ConstructableFileSystemModifyEvent(String path, bool isDirectory, |
| 43 this.contentChanged) | 43 this.contentChanged) |
| 44 : super(path, isDirectory); | 44 : super(path, isDirectory); |
| 45 | 45 |
| 46 String toString() => | 46 String toString() => |
| 47 "FileSystemModifyEvent('$path', contentChanged=$contentChanged)"; | 47 "FileSystemModifyEvent('$path', contentChanged=$contentChanged)"; |
| 48 } | 48 } |
| 49 | 49 |
| 50 class ConstructableFileSystemMoveEvent extends _ConstructableFileSystemEvent | 50 class ConstructableFileSystemMoveEvent extends _ConstructableFileSystemEvent |
| 51 implements FileSystemMoveEvent { | 51 implements FileSystemMoveEvent { |
| 52 final String destination; | 52 final String destination; |
| 53 final type = FileSystemEvent.MOVE; | 53 final type = FileSystemEvent.MOVE; |
| 54 | 54 |
| 55 ConstructableFileSystemMoveEvent(String path, bool isDirectory, | 55 ConstructableFileSystemMoveEvent(String path, bool isDirectory, |
| 56 this.destination) | 56 this.destination) |
| 57 : super(path, isDirectory); | 57 : super(path, isDirectory); |
| 58 | 58 |
| 59 String toString() => "FileSystemMoveEvent('$path', '$destination')"; | 59 String toString() => "FileSystemMoveEvent('$path', '$destination')"; |
| 60 } | 60 } |
| OLD | NEW |