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

Unified Diff: pkg/analysis_server/tool/spec/generate_all.dart

Issue 469543002: Add a test to verify that analysis server code generation is up to date. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove unused imports 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/analysis_server/tool/spec/codegen_tools.dart ('k') | pkg/analysis_server/tool/spec/generate_files » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/tool/spec/generate_all.dart
diff --git a/pkg/analysis_server/tool/spec/generate_all.dart b/pkg/analysis_server/tool/spec/generate_all.dart
new file mode 100644
index 0000000000000000000000000000000000000000..09182eb81af8743c64376b8eb605a14399405882
--- /dev/null
+++ b/pkg/analysis_server/tool/spec/generate_all.dart
@@ -0,0 +1,38 @@
+// Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
+// 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 generate.all;
+
+import 'dart:io';
+
+import 'package:path/path.dart';
+
+import 'codegen_tools.dart';
+import 'codegen_analysis_server.dart' as codegen_analysis_server;
+import 'codegen_inttest_methods.dart' as codegen_inttest_methods;
+import 'codegen_matchers.dart' as codegen_matchers;
+import 'to_html.dart' as to_html;
+
+/**
+ * Get a list of all generated targets.
+ */
+List<GeneratedFile> get allTargets {
+ List<GeneratedFile> targets = <GeneratedFile>[];
+ targets.add(codegen_analysis_server.target);
+ targets.add(codegen_inttest_methods.target);
+ targets.add(codegen_matchers.target);
+ targets.add(to_html.target);
+ return targets;
+}
+
+/**
+ * Generate all targets
+ */
+main() {
+ String script = Platform.script.toFilePath(windows: Platform.isWindows);
+ Directory.current = new Directory(dirname(script));
+ for (GeneratedFile generatedFile in allTargets) {
+ generatedFile.generate();
+ }
+}
« no previous file with comments | « pkg/analysis_server/tool/spec/codegen_tools.dart ('k') | pkg/analysis_server/tool/spec/generate_files » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698