Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(278)

Unified Diff: pkg/analyzer/lib/file_system/memory_file_system.dart

Issue 2397813002: Fix context comparisons (Closed)
Patch Set: fixed more cases Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/sdk/sdk.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5d4e67501c80abebbd9cfb35396f58e850c86380..a69e15eabd5820e2e34ef7da86da0e5e05ed411b 100644
--- a/pkg/analyzer/lib/file_system/memory_file_system.dart
+++ b/pkg/analyzer/lib/file_system/memory_file_system.dart
@@ -50,7 +50,7 @@ class MemoryResourceProvider implements ResourceProvider {
* this class are never converted automatically.
*/
String convertPath(String path) {
- if (pathContext == pathos.windows &&
+ if (pathContext.style == pathos.windows.style &&
path.startsWith(pathos.posix.separator)) {
path = r'C:' +
path.replaceAll(pathos.posix.separator, pathos.windows.separator);
@@ -341,10 +341,6 @@ class _MemoryDummyLink extends _MemoryResource implements File {
}
@override
- Uri toUri() =>
- new Uri.file(path, windows: _provider.pathContext == pathos.windows);
-
- @override
void writeAsBytesSync(List<int> bytes) {
throw new FileSystemException(path, 'File could not be written');
}
« no previous file with comments | « no previous file | pkg/analyzer/lib/src/dart/sdk/sdk.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698