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.memory_file_system; | 5 library analyzer.file_system.memory_file_system; |
6 | 6 |
7 import 'dart:async'; | 7 import 'dart:async'; |
8 import 'dart:collection'; | 8 import 'dart:collection'; |
9 import 'dart:core' hide Resource; | 9 import 'dart:core' hide Resource; |
10 | 10 |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 @override | 444 @override |
445 String get shortName => file.shortName; | 445 String get shortName => file.shortName; |
446 | 446 |
447 @override | 447 @override |
448 UriKind get uriKind { | 448 UriKind get uriKind { |
449 String scheme = uri.scheme; | 449 String scheme = uri.scheme; |
450 if (scheme == PackageUriResolver.PACKAGE_SCHEME) { | 450 if (scheme == PackageUriResolver.PACKAGE_SCHEME) { |
451 return UriKind.PACKAGE_URI; | 451 return UriKind.PACKAGE_URI; |
452 } else if (scheme == DartUriResolver.DART_SCHEME) { | 452 } else if (scheme == DartUriResolver.DART_SCHEME) { |
453 return UriKind.DART_URI; | 453 return UriKind.DART_URI; |
454 } else if (scheme == FileUriResolver.FILE_SCHEME) { | 454 } else if (scheme == ResourceUriResolver.FILE_SCHEME) { |
455 return UriKind.FILE_URI; | 455 return UriKind.FILE_URI; |
456 } | 456 } |
457 return UriKind.FILE_URI; | 457 return UriKind.FILE_URI; |
458 } | 458 } |
459 | 459 |
460 @override | 460 @override |
461 bool operator ==(other) { | 461 bool operator ==(other) { |
462 if (other is _MemoryFileSource) { | 462 if (other is _MemoryFileSource) { |
463 return id == other.id; | 463 return id == other.id; |
464 } else if (other is Source) { | 464 } else if (other is Source) { |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 bool operator ==(other) { | 600 bool operator ==(other) { |
601 if (runtimeType != other.runtimeType) { | 601 if (runtimeType != other.runtimeType) { |
602 return false; | 602 return false; |
603 } | 603 } |
604 return path == other.path; | 604 return path == other.path; |
605 } | 605 } |
606 | 606 |
607 @override | 607 @override |
608 String toString() => path; | 608 String toString() => path; |
609 } | 609 } |
OLD | NEW |