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

Unified Diff: pkg/analyzer/tool/task_dependency_graph/generate.dart

Issue 1533693003: - Fix usage of Platform.packageRoot. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: sync to latest 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
« no previous file with comments | « pkg/analyzer/lib/src/codegen/tools.dart ('k') | tests/compiler/dart2js/analyze_helper.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/tool/task_dependency_graph/generate.dart
diff --git a/pkg/analyzer/tool/task_dependency_graph/generate.dart b/pkg/analyzer/tool/task_dependency_graph/generate.dart
index 4ae30faf0657aefa29d509302c3e39576193c6b3..91560b27ce17d7284917174a83ed981ffba3f279 100644
--- a/pkg/analyzer/tool/task_dependency_graph/generate.dart
+++ b/pkg/analyzer/tool/task_dependency_graph/generate.dart
@@ -128,7 +128,8 @@ class Driver {
context = AnalysisEngine.instance.createAnalysisContext();
String packageRootPath;
if (Platform.packageRoot.isNotEmpty) {
- packageRootPath = Platform.packageRoot;
+ Uri packageRootUri = Uri.parse(Platform.packageRoot);
+ packageRootPath = packageRootUri.toFilePath();
} else {
packageRootPath = path.join(rootDir, 'packages');
}
« no previous file with comments | « pkg/analyzer/lib/src/codegen/tools.dart ('k') | tests/compiler/dart2js/analyze_helper.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698