| 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 file_system; | 5 library file_system; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analyzer/src/generated/source.dart'; | 9 import 'package:analyzer/src/generated/source.dart'; |
| 10 import 'package:path/path.dart'; | 10 import 'package:path/path.dart'; |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 if (resource is File) { | 171 if (resource is File) { |
| 172 return resource.createSource(uri); | 172 return resource.createSource(uri); |
| 173 } | 173 } |
| 174 return null; | 174 return null; |
| 175 } | 175 } |
| 176 | 176 |
| 177 @override | 177 @override |
| 178 Uri restoreAbsolute(Source source) => source.uri; | 178 Uri restoreAbsolute(Source source) => source.uri; |
| 179 | 179 |
| 180 /** | 180 /** |
| 181 * Return `true` if the given URI is a `file` URI. | 181 * Return `true` if the given [uri] is a `file` URI. |
| 182 * | |
| 183 * @param uri the URI being tested | |
| 184 * @return `true` if the given URI is a `file` URI | |
| 185 */ | 182 */ |
| 186 static bool _isFileUri(Uri uri) => uri.scheme == _FILE_SCHEME; | 183 static bool _isFileUri(Uri uri) => uri.scheme == _FILE_SCHEME; |
| 187 } | 184 } |
| OLD | NEW |