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

Side by Side Diff: pkg/analysis_server/tool/spec/generate_all.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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 import 'dart:io'; 5 import 'dart:io';
6 6
7 import 'package:front_end/src/codegen/tools.dart'; 7 import 'package:front_end/src/codegen/tools.dart';
8 import 'package:path/path.dart'; 8 import 'package:path/path.dart';
9 9
10 import 'codegen_analysis_server.dart' as codegen_analysis_server; 10 import 'codegen_analysis_server.dart' as codegen_analysis_server;
11 import 'codegen_dart_protocol.dart' as codegen_dart_protocol; 11 import 'codegen_dart_protocol.dart' as codegen_dart_protocol;
12 import 'codegen_inttest_methods.dart' as codegen_inttest_methods; 12 import 'codegen_inttest_methods.dart' as codegen_inttest_methods;
13 import 'codegen_java_types.dart' as codegen_java_types; 13 import 'codegen_java_types.dart' as codegen_java_types;
14 import 'codegen_matchers.dart' as codegen_matchers; 14 import 'codegen_matchers.dart' as codegen_matchers;
15 import 'codegen_protocol_constants.dart' as codegen_protocol_constants; 15 import 'codegen_protocol_constants.dart' as codegen_protocol_constants;
16 import 'to_html.dart' as to_html; 16 import 'to_html.dart' as to_html;
17 17
18 /** 18 /**
19 * Generate all targets. 19 * Generate all targets.
20 */ 20 */
21 main() { 21 main() async {
22 String script = Platform.script.toFilePath(windows: Platform.isWindows); 22 String script = Platform.script.toFilePath(windows: Platform.isWindows);
23 String pkgPath = normalize(join(dirname(script), '..', '..')); 23 String pkgPath = normalize(join(dirname(script), '..', '..'));
24 GeneratedContent.generateAll(pkgPath, allTargets); 24 await GeneratedContent.generateAll(pkgPath, allTargets);
25 } 25 }
26 26
27 /** 27 /**
28 * Get a list of all generated targets. 28 * Get a list of all generated targets.
29 */ 29 */
30 List<GeneratedContent> get allTargets { 30 List<GeneratedContent> get allTargets {
31 List<GeneratedContent> targets = <GeneratedContent>[]; 31 List<GeneratedContent> targets = <GeneratedContent>[];
32 targets.add(codegen_analysis_server.target); 32 targets.add(codegen_analysis_server.target);
33 targets.add(codegen_dart_protocol.target(false)); 33 targets.add(codegen_dart_protocol.target(false));
34 targets.add(codegen_java_types.targetDir); 34 targets.add(codegen_java_types.targetDir);
35 targets.add(codegen_inttest_methods.target); 35 targets.add(codegen_inttest_methods.target);
36 targets.add(codegen_matchers.target); 36 targets.add(codegen_matchers.target);
37 targets.add(codegen_protocol_constants.target); 37 targets.add(codegen_protocol_constants.target);
38 targets.add(to_html.target); 38 targets.add(to_html.target);
39 return targets; 39 return targets;
40 } 40 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/tool/spec/codegen_protocol_constants.dart ('k') | pkg/analysis_server/tool/spec/to_html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698