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

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

Issue 2742333005: Move some of analyzer's code generation utilities into front_end. (Closed)
Patch Set: Created 3 years, 9 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 /** 5 /**
6 * Code generation for the file "AnalysisServer.java". 6 * Code generation for the file "AnalysisServer.java".
7 */ 7 */
8 library java.generator.server; 8 library java.generator.server;
9 9
10 import 'package:analyzer/src/codegen/tools.dart'; 10 import 'package:analyzer/src/codegen/tools.dart';
11 import 'package:front_end/src/codegen/tools.dart';
11 12
12 import 'api.dart'; 13 import 'api.dart';
13 import 'codegen_java.dart'; 14 import 'codegen_java.dart';
14 15
15 final GeneratedFile target = javaGeneratedFile( 16 final GeneratedFile target = javaGeneratedFile(
16 'tool/spec/generated/java/AnalysisServer.java', 17 'tool/spec/generated/java/AnalysisServer.java',
17 (Api api) => new CodegenAnalysisServer(api)); 18 (Api api) => new CodegenAnalysisServer(api));
18 19
19 class CodegenAnalysisServer extends CodegenJavaVisitor { 20 class CodegenAnalysisServer extends CodegenJavaVisitor {
20 CodegenAnalysisServer(Api api) : super(api); 21 CodegenAnalysisServer(Api api) : super(api);
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 } 127 }
127 } 128 }
128 if (request.result != null) { 129 if (request.result != null) {
129 arguments.add('${consumerName(request)} consumer'); 130 arguments.add('${consumerName(request)} consumer');
130 } 131 }
131 write(arguments.join(', ')); 132 write(arguments.join(', '));
132 writeln(');'); 133 writeln(');');
133 }); 134 });
134 } 135 }
135 } 136 }
OLDNEW
« no previous file with comments | « pkg/analysis_server/tool/spec/check_all_test.dart ('k') | pkg/analysis_server/tool/spec/codegen_dart_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698