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

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

Issue 2844273003: Unify the server and plugin versions of the generators (Closed)
Patch Set: add missed files Created 3 years, 8 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: pkg/analysis_server/tool/spec/codegen_matchers.dart
diff --git a/pkg/analysis_server/tool/spec/codegen_matchers.dart b/pkg/analysis_server/tool/spec/codegen_matchers.dart
index 8fbf499de026a77517d7d5ea63f562e7868e3f16..e54c7e215ea6ecb3e6780fee4c86321e221cc79f 100644
--- a/pkg/analysis_server/tool/spec/codegen_matchers.dart
+++ b/pkg/analysis_server/tool/spec/codegen_matchers.dart
@@ -5,8 +5,6 @@
/**
* Code generation for the file "matchers.dart".
*/
-library codegen.matchers;
-
import 'dart:convert';
import 'package:analyzer/src/codegen/tools.dart';
@@ -18,7 +16,7 @@ import 'implied_types.dart';
import 'to_html.dart';
final GeneratedFile target = new GeneratedFile(
- 'test/integration/protocol_matchers.dart', (String pkgPath) {
+ 'test/integration/support/protocol_matchers.dart', (String pkgPath) {
CodegenMatchersVisitor visitor = new CodegenMatchersVisitor(readApi(pkgPath));
return visitor.collectCode(visitor.visitApi);
});
@@ -99,18 +97,15 @@ class CodegenMatchersVisitor extends HierarchicalApiVisitor with CodeGenerator {
@override
visitApi() {
- outputHeader();
+ outputHeader(year: '2017');
writeln();
writeln('/**');
writeln(' * Matchers for data types defined in the analysis server API');
writeln(' */');
- writeln('library test.integration.protocol.matchers;');
- writeln();
writeln("import 'package:test/test.dart';");
writeln();
writeln("import 'integration_tests.dart';");
writeln();
- writeln();
for (ImpliedType impliedType in computeImpliedTypes(api).values) {
makeMatcher(impliedType);
}
« no previous file with comments | « pkg/analysis_server/tool/spec/codegen_inttest_methods.dart ('k') | pkg/analysis_server/tool/spec/from_html.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698