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

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

Issue 1536043002: - Fix more bad uses of Platform.packageRoot. (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/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 91560b27ce17d7284917174a83ed981ffba3f279..9b960f3d4e0e31d0b8f49b2ad194147475c67a7a 100644
--- a/pkg/analyzer/tool/task_dependency_graph/generate.dart
+++ b/pkg/analyzer/tool/task_dependency_graph/generate.dart
@@ -127,9 +127,8 @@ class Driver {
DartSdk sdk = DirectoryBasedDartSdk.defaultSdk;
context = AnalysisEngine.instance.createAnalysisContext();
String packageRootPath;
- if (Platform.packageRoot.isNotEmpty) {
- Uri packageRootUri = Uri.parse(Platform.packageRoot);
- packageRootPath = packageRootUri.toFilePath();
+ if (Platform.packageRoot != null) {
+ packageRootPath = Uri.parse(Platform.packageRoot).toFilePath();
} else {
packageRootPath = path.join(rootDir, 'packages');
}
« no previous file with comments | « no previous file | tests/compiler/dart2js/incremental/hello_test.dart » ('j') | tests/standalone/precompilation_dart2js_test.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698