| 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 20f69e7260ee59dd0f2e8c3c18e04ec223e7c684..3cab6ee8995aed9cfaed5d5a10d6a66cc98174a8 100644
|
| --- a/pkg/analyzer/lib/file_system/memory_file_system.dart
|
| +++ b/pkg/analyzer/lib/file_system/memory_file_system.dart
|
| @@ -36,7 +36,12 @@ class MemoryResourceProvider implements ResourceProvider {
|
|
|
| MemoryResourceProvider(
|
| {pathos.Context context, @deprecated bool isWindows: false})
|
| - : _pathContext = (context ??= pathos.context),
|
| + : _pathContext = (context ??= pathos.style == pathos.Style.windows
|
| + // On Windows, ensure that the current drive matches
|
| + // the drive inserted by MemoryResourceProvider.convertPath
|
| + // so that packages are mapped to the correct drive
|
| + ? new pathos.Context(current: 'C:\\')
|
| + : pathos.context),
|
| absolutePathContext =
|
| new AbsolutePathContext(context.style == pathos.Style.windows);
|
|
|
|
|