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

Side by Side Diff: pkg/analysis_server/tool/spec/generate_all.dart

Issue 479043002: Code generate Dart classes representing the analysis server API. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
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 library generate.all; 5 library generate.all;
6 6
7 import 'dart:io'; 7 import 'dart:io';
8 8
9 import 'package:path/path.dart'; 9 import 'package:path/path.dart';
10 10
11 import 'codegen_tools.dart'; 11 import 'codegen_tools.dart';
12 import 'codegen_analysis_server.dart' as codegen_analysis_server; 12 import 'codegen_analysis_server.dart' as codegen_analysis_server;
13 import 'codegen_dart_protocol.dart' as codegen_dart_protocol;
13 import 'codegen_java_types.dart' as codegen_java_types; 14 import 'codegen_java_types.dart' as codegen_java_types;
14 import 'codegen_inttest_methods.dart' as codegen_inttest_methods; 15 import 'codegen_inttest_methods.dart' as codegen_inttest_methods;
15 import 'codegen_matchers.dart' as codegen_matchers; 16 import 'codegen_matchers.dart' as codegen_matchers;
16 import 'to_html.dart' as to_html; 17 import 'to_html.dart' as to_html;
17 18
18 /** 19 /**
19 * Get a list of all generated targets. 20 * Get a list of all generated targets.
20 */ 21 */
21 List<GeneratedContent> get allTargets { 22 List<GeneratedContent> get allTargets {
22 List<GeneratedContent> targets = <GeneratedContent>[]; 23 List<GeneratedContent> targets = <GeneratedContent>[];
23 targets.add(codegen_analysis_server.target); 24 targets.add(codegen_analysis_server.target);
25 targets.add(codegen_dart_protocol.target);
24 targets.add(codegen_java_types.targetDir); 26 targets.add(codegen_java_types.targetDir);
25 targets.add(codegen_inttest_methods.target); 27 targets.add(codegen_inttest_methods.target);
26 targets.add(codegen_matchers.target); 28 targets.add(codegen_matchers.target);
27 targets.add(to_html.target); 29 targets.add(to_html.target);
28 return targets; 30 return targets;
29 } 31 }
30 32
31 /** 33 /**
32 * Generate all targets 34 * Generate all targets
33 */ 35 */
34 main() { 36 main() {
35 String script = Platform.script.toFilePath(windows: Platform.isWindows); 37 String script = Platform.script.toFilePath(windows: Platform.isWindows);
36 Directory.current = new Directory(dirname(script)); 38 Directory.current = new Directory(dirname(script));
37 for (GeneratedContent generatedContent in allTargets) { 39 for (GeneratedContent generatedContent in allTargets) {
38 generatedContent.generate(); 40 generatedContent.generate();
39 } 41 }
40 } 42 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698