| 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);
|
| }
|
|
|