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

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

Issue 1511833004: Validate that root paths are absolute and normalized. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years 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
Index: pkg/analyzer/lib/file_system/physical_file_system.dart
diff --git a/pkg/analyzer/lib/file_system/physical_file_system.dart b/pkg/analyzer/lib/file_system/physical_file_system.dart
index 94aa7667ed9db0451806de772c3d46c58967af23..af405ba9b5b682420292496326619b261b87226e 100644
--- a/pkg/analyzer/lib/file_system/physical_file_system.dart
+++ b/pkg/analyzer/lib/file_system/physical_file_system.dart
@@ -33,7 +33,7 @@ class PhysicalResourceProvider implements ResourceProvider {
static final String SERVER_DIR = ".dartServer";
final AbsolutePathContext absolutePathContext =
- new AbsolutePathContext(io.Platform.pathSeparator);
+ new AbsolutePathContext(io.Platform.isWindows);
PhysicalResourceProvider(String fileReadMode(String s)) {
if (fileReadMode != null) {

Powered by Google App Engine
This is Rietveld 408576698