| 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.src.generated.source_io; | 5 library analyzer.src.generated.source_io; |
| 6 | 6 |
| 7 import 'dart:collection'; | 7 import 'dart:collection'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/generated/engine.dart'; | 9 import 'package:analyzer/src/generated/engine.dart'; |
| 10 import 'package:analyzer/src/generated/java_core.dart'; | 10 import 'package:analyzer/src/generated/java_core.dart'; |
| (...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 | 214 |
| 215 @override | 215 @override |
| 216 String get fullName { | 216 String get fullName { |
| 217 if (_absolutePath == null) { | 217 if (_absolutePath == null) { |
| 218 _absolutePath = file.getAbsolutePath(); | 218 _absolutePath = file.getAbsolutePath(); |
| 219 } | 219 } |
| 220 return _absolutePath; | 220 return _absolutePath; |
| 221 } | 221 } |
| 222 | 222 |
| 223 @override | 223 @override |
| 224 int get hashCode => id; | 224 int get hashCode => uri.hashCode; |
| 225 | 225 |
| 226 @override | 226 @override |
| 227 bool get isInSystemLibrary => uri.scheme == DartUriResolver.DART_SCHEME; | 227 bool get isInSystemLibrary => uri.scheme == DartUriResolver.DART_SCHEME; |
| 228 | 228 |
| 229 @override | 229 @override |
| 230 int get modificationStamp => file.lastModified(); | 230 int get modificationStamp => file.lastModified(); |
| 231 | 231 |
| 232 @override | 232 @override |
| 233 String get shortName => file.getName(); | 233 String get shortName => file.getName(); |
| 234 | 234 |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 } | 566 } |
| 567 | 567 |
| 568 /** | 568 /** |
| 569 * Return `true` if the given URI is a `file` URI. | 569 * Return `true` if the given URI is a `file` URI. |
| 570 * | 570 * |
| 571 * @param uri the URI being tested | 571 * @param uri the URI being tested |
| 572 * @return `true` if the given URI is a `file` URI | 572 * @return `true` if the given URI is a `file` URI |
| 573 */ | 573 */ |
| 574 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; | 574 static bool isFileUri(Uri uri) => uri.scheme == FILE_SCHEME; |
| 575 } | 575 } |
| OLD | NEW |