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

Unified Diff: packages/analyzer/tool/task_dependency_graph/check_test.dart

Issue 2990843002: Removed fixed dependencies (Closed)
Patch Set: Created 3 years, 5 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: packages/analyzer/tool/task_dependency_graph/check_test.dart
diff --git a/packages/analyzer/tool/task_dependency_graph/check_test.dart b/packages/analyzer/tool/task_dependency_graph/check_test.dart
index a2d1118b1393c4be89acaf8132cc9d349d98b4b8..c689d63f86f63537224599dfd05fc9b9db867df8 100644
--- a/packages/analyzer/tool/task_dependency_graph/check_test.dart
+++ b/packages/analyzer/tool/task_dependency_graph/check_test.dart
@@ -2,10 +2,11 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library task_dependency_graph.check_test;
+library analyzer.tool.task_dependency_graph.check_test;
import 'dart:io';
+import 'package:analyzer/src/codegen/tools.dart';
import 'package:path/path.dart';
import 'generate.dart';
@@ -16,19 +17,7 @@ import 'generate.dart';
*/
main() {
String script = Platform.script.toFilePath(windows: Platform.isWindows);
- Driver driver = new Driver();
- if (!driver.checkFile()) {
- print('${driver.file.absolute} does not have expected contents.');
- print('Please regenerate using:');
- String executable = Platform.executable;
- String packageRoot = '';
- if (Platform.packageRoot.isNotEmpty) {
- packageRoot = ' --package-root=${Platform.packageRoot}';
- }
- String generateScript = join(dirname(script), 'generate.dart');
- print(' $executable$packageRoot $generateScript');
- exit(1);
- } else {
- print('Generated file is up to date.');
- }
+ String pkgPath = normalize(join(dirname(script), '..', '..'));
+ GeneratedContent.checkAll(pkgPath, 'tool/task_dependency_graph/generate.dart',
+ <GeneratedContent>[target]);
}
« no previous file with comments | « packages/analyzer/tool/summary/stats.dart ('k') | packages/analyzer/tool/task_dependency_graph/generate.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698