| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |