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

Unified Diff: pkg/analyzer/lib/src/dart/sdk/sdk.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
Index: pkg/analyzer/lib/src/dart/sdk/sdk.dart
diff --git a/pkg/analyzer/lib/src/dart/sdk/sdk.dart b/pkg/analyzer/lib/src/dart/sdk/sdk.dart
index 2e71aebc2c7c352c1011972a25938026af09da84..dbf811c7c01b1df326812e8ab4b61baa542adab7 100644
--- a/pkg/analyzer/lib/src/dart/sdk/sdk.dart
+++ b/pkg/analyzer/lib/src/dart/sdk/sdk.dart
@@ -680,8 +680,8 @@ class FolderBasedDartSdk extends AbstractDartSdk {
return null;
}
pathos.Context pathContext = resourceProvider.pathContext;
- if (pathContext != pathos.context) {
- // The only time this will be true is if pathContext == posix and
+ if (pathContext.style != pathos.context.style) {
+ // This will only be true if pathContext == posix and
// pathos.context == windows, which only happens when running tests.
if (exec.startsWith(new RegExp('[a-zA-Z]:'))) {
exec = exec.substring(2);
« no previous file with comments | « pkg/analyzer/lib/file_system/memory_file_system.dart ('k') | pkg/analyzer/test/file_system/memory_file_system_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698