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

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

Issue 1132673003: Create a new home for Java code generated by analysis server. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/codegen_java_types.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 'api.dart'; 10 import 'api.dart';
11 import 'codegen_java.dart'; 11 import 'codegen_java.dart';
12 import 'codegen_tools.dart'; 12 import 'codegen_tools.dart';
13 13
14 final GeneratedFile target = javaGeneratedFile( 14 final GeneratedFile target = javaGeneratedFile(
15 '../../../../editor/tools/plugins/com.google.dart.server/src/com/google/dart /server/generated/AnalysisServer.java', 15 'generated/java/AnalysisServer.java',
16 (Api api) => new CodegenAnalysisServer(api)); 16 (Api api) => new CodegenAnalysisServer(api));
17 17
18 /** 18 /**
19 * Translate spec_input.html into AnalysisServer.java. 19 * Translate spec_input.html into AnalysisServer.java.
20 */ 20 */
21 main() { 21 main() {
22 target.generate(); 22 target.generate();
23 } 23 }
24 24
25 class CodegenAnalysisServer extends CodegenJavaVisitor { 25 class CodegenAnalysisServer extends CodegenJavaVisitor {
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 } 132 }
133 } 133 }
134 if (request.result != null) { 134 if (request.result != null) {
135 arguments.add('${consumerName(request)} consumer'); 135 arguments.add('${consumerName(request)} consumer');
136 } 136 }
137 write(arguments.join(', ')); 137 write(arguments.join(', '));
138 writeln(');'); 138 writeln(');');
139 }); 139 });
140 } 140 }
141 } 141 }
OLDNEW
« no previous file with comments | « no previous file | pkg/analysis_server/tool/spec/codegen_java_types.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698