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

Side by Side Diff: pkg/analyzer/tool/task_dependency_graph/check_test.dart

Issue 3002293003: Convert GeneratedContent to async and use AnalysisDriver for tasks graph. (Closed)
Patch Set: Created 3 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library analyzer.tool.task_dependency_graph.check_test; 5 library analyzer.tool.task_dependency_graph.check_test;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:front_end/src/codegen/tools.dart'; 9 import 'package:front_end/src/codegen/tools.dart';
10 import 'package:path/path.dart'; 10 import 'package:path/path.dart';
11 11
12 import 'generate.dart'; 12 import 'generate.dart';
13 13
14 /** 14 /**
15 * Check that the target file has been code generated. If it hasn't tell the 15 * Check that the target file has been code generated. If it hasn't tell the
16 * user to run generate.dart. 16 * user to run generate.dart.
17 */ 17 */
18 main() { 18 main() async {
19 String script = Platform.script.toFilePath(windows: Platform.isWindows); 19 String script = Platform.script.toFilePath(windows: Platform.isWindows);
20 String pkgPath = normalize(join(dirname(script), '..', '..')); 20 String pkgPath = normalize(join(dirname(script), '..', '..'));
21 GeneratedContent.checkAll(pkgPath, 'tool/task_dependency_graph/generate.dart', 21 await GeneratedContent.checkAll(pkgPath,
22 <GeneratedContent>[target]); 22 'tool/task_dependency_graph/generate.dart', <GeneratedContent>[target]);
23 } 23 }
OLDNEW
« no previous file with comments | « pkg/analyzer/tool/summary/generate.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