| Index: pkg/analyzer/lib/file_system/memory_file_system.dart
|
| diff --git a/pkg/analyzer/lib/file_system/memory_file_system.dart b/pkg/analyzer/lib/file_system/memory_file_system.dart
|
| index 34a483960ea5d000a98fd2155a1ad447f2d92b9b..60ad8493e70ea5d60570956aba61447d7738a165 100644
|
| --- a/pkg/analyzer/lib/file_system/memory_file_system.dart
|
| +++ b/pkg/analyzer/lib/file_system/memory_file_system.dart
|
| @@ -44,6 +44,21 @@ class MemoryResourceProvider implements ResourceProvider {
|
| pathos.Context get pathContext => _pathContext;
|
|
|
| /**
|
| + * Convert the given posix [path] to conform to this provider's path context.
|
| + *
|
| + * This is a utility method for testing; paths passed in to other methods in
|
| + * this class are never converted automatically.
|
| + */
|
| + String convertPath(String path) {
|
| + if (pathContext == pathos.windows &&
|
| + path.startsWith(pathos.posix.separator)) {
|
| + path = r'C:' +
|
| + path.replaceAll(pathos.posix.separator, pathos.windows.separator);
|
| + }
|
| + return path;
|
| + }
|
| +
|
| + /**
|
| * Delete the file with the given path.
|
| */
|
| void deleteFile(String path) {
|
|
|