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

Unified Diff: pkg/analyzer/lib/src/codegen/tools.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
Index: pkg/analyzer/lib/src/codegen/tools.dart
diff --git a/pkg/analyzer/lib/src/codegen/tools.dart b/pkg/analyzer/lib/src/codegen/tools.dart
index 6c4048c90ef2a0ceedfaf82587ec6332c56ba1b2..1c96ef09de66c4ce2e113a0198f4f63b7e8c3d9d 100644
--- a/pkg/analyzer/lib/src/codegen/tools.dart
+++ b/pkg/analyzer/lib/src/codegen/tools.dart
@@ -311,7 +311,7 @@ abstract class GeneratedContent {
print('Please regenerate using:');
String executable = Platform.executable;
String packageRoot = '';
- if (Platform.packageRoot.isNotEmpty) {
+ if (Platform.packageRoot != null) {
packageRoot = ' --package-root=${Platform.packageRoot}';
}
String generateScript =
« no previous file with comments | « pkg/analysis_server/test/integration/integration_tests.dart ('k') | pkg/analyzer/tool/task_dependency_graph/generate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698