| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer.file_system.physical_file_system; | 5 library analyzer.file_system.physical_file_system; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:core' hide Resource; | 8 import 'dart:core' hide Resource; |
| 9 import 'dart:io' as io; | 9 import 'dart:io' as io; |
| 10 | 10 |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 | 256 |
| 257 @override | 257 @override |
| 258 bool operator ==(other) { | 258 bool operator ==(other) { |
| 259 if (runtimeType != other.runtimeType) { | 259 if (runtimeType != other.runtimeType) { |
| 260 return false; | 260 return false; |
| 261 } | 261 } |
| 262 return path == other.path; | 262 return path == other.path; |
| 263 } | 263 } |
| 264 | 264 |
| 265 @override | 265 @override |
| 266 void delete() { |
| 267 try { |
| 268 _entry.deleteSync(recursive: true); |
| 269 } on io.FileSystemException catch (exception) { |
| 270 throw new FileSystemException(exception.path, exception.message); |
| 271 } |
| 272 } |
| 273 |
| 274 @override |
| 266 String toString() => path; | 275 String toString() => path; |
| 267 } | 276 } |
| OLD | NEW |