| 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 memory_file_system; | 5 library memory_file_system; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 import 'dart:collection'; | 8 import 'dart:collection'; |
| 9 | 9 |
| 10 import 'package:analyzer/src/generated/engine.dart' show TimestampedData; | 10 import 'package:analyzer/src/generated/engine.dart' show TimestampedData; |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 305 @override | 305 @override |
| 306 int get hashCode => id; | 306 int get hashCode => id; |
| 307 | 307 |
| 308 @override | 308 @override |
| 309 bool get isInSystemLibrary => uriKind == UriKind.DART_URI; | 309 bool get isInSystemLibrary => uriKind == UriKind.DART_URI; |
| 310 | 310 |
| 311 @override | 311 @override |
| 312 int get modificationStamp { | 312 int get modificationStamp { |
| 313 try { | 313 try { |
| 314 return file.modificationStamp; | 314 return file.modificationStamp; |
| 315 } on FileSystemException catch (e) { | 315 } on FileSystemException { |
| 316 return -1; | 316 return -1; |
| 317 } | 317 } |
| 318 } | 318 } |
| 319 | 319 |
| 320 @override | 320 @override |
| 321 String get shortName => file.shortName; | 321 String get shortName => file.shortName; |
| 322 | 322 |
| 323 @override | 323 @override |
| 324 UriKind get uriKind { | 324 UriKind get uriKind { |
| 325 String scheme = uri.scheme; | 325 String scheme = uri.scheme; |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 461 bool operator ==(other) { | 461 bool operator ==(other) { |
| 462 if (runtimeType != other.runtimeType) { | 462 if (runtimeType != other.runtimeType) { |
| 463 return false; | 463 return false; |
| 464 } | 464 } |
| 465 return path == other.path; | 465 return path == other.path; |
| 466 } | 466 } |
| 467 | 467 |
| 468 @override | 468 @override |
| 469 String toString() => path; | 469 String toString() => path; |
| 470 } | 470 } |
| OLD | NEW |