| 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 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 return '${new String.fromCharCode(uriKind.encoding)}${_file.path}'; | 210 return '${new String.fromCharCode(uriKind.encoding)}${_file.path}'; |
| 211 } | 211 } |
| 212 | 212 |
| 213 @override | 213 @override |
| 214 String get fullName => _file.path; | 214 String get fullName => _file.path; |
| 215 | 215 |
| 216 @override | 216 @override |
| 217 int get hashCode => _file.hashCode; | 217 int get hashCode => _file.hashCode; |
| 218 | 218 |
| 219 @override | 219 @override |
| 220 bool get isInSystemLibrary => false; | 220 bool get isInSystemLibrary => uriKind == UriKind.DART_URI; |
| 221 | 221 |
| 222 @override | 222 @override |
| 223 int get modificationStamp => _file._timestamp; | 223 int get modificationStamp => _file._timestamp; |
| 224 | 224 |
| 225 @override | 225 @override |
| 226 String get shortName => _file.shortName; | 226 String get shortName => _file.shortName; |
| 227 | 227 |
| 228 @override | 228 @override |
| 229 bool operator ==(other) { | 229 bool operator ==(other) { |
| 230 if (other is _MemoryFileSource) { | 230 if (other is _MemoryFileSource) { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 bool operator ==(other) { | 332 bool operator ==(other) { |
| 333 if (runtimeType != other.runtimeType) { | 333 if (runtimeType != other.runtimeType) { |
| 334 return false; | 334 return false; |
| 335 } | 335 } |
| 336 return path == other.path; | 336 return path == other.path; |
| 337 } | 337 } |
| 338 | 338 |
| 339 @override | 339 @override |
| 340 String toString() => path; | 340 String toString() => path; |
| 341 } | 341 } |
| OLD | NEW |