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

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

Issue 2668733002: Update server generator (Closed)
Patch Set: re-ran generator Created 3 years, 11 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_dart_protocol.dart
diff --git a/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart b/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
index bdde0bc881e4346ddac288ba61d4b8ebf3678b8a..8ba3d320ee66e7a89de97e8b34eac4038e1db2fb 100644
--- a/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
+++ b/pkg/analysis_server/tool/spec/codegen_dart_protocol.dart
@@ -216,7 +216,14 @@ class CodegenProtocolVisitor extends DartCodegenVisitor with CodeGenerator {
toHtmlVisitor.write(disclaimer);
});
}));
- writeln('class $className {');
+ write('class $className');
+ if (impliedType.kind == 'refactoringFeedback') {
+ writeln(' extends RefactoringFeedback {');
+ } else if (impliedType.kind == 'refactoringOptions') {
+ writeln(' extends RefactoringOptions {');
+ } else {
+ writeln(' {');
+ }
indent(() {
if (emitToRequestMember(impliedType)) {
writeln();
@@ -378,12 +385,12 @@ class CodegenProtocolVisitor extends DartCodegenVisitor with CodeGenerator {
}));
write('class $className');
if (impliedType.kind == 'refactoringFeedback') {
- write(' extends RefactoringFeedback');
- }
- if (impliedType.kind == 'refactoringOptions') {
- write(' extends RefactoringOptions');
+ writeln(' extends RefactoringFeedback {');
+ } else if (impliedType.kind == 'refactoringOptions') {
+ writeln(' extends RefactoringOptions {');
+ } else {
+ writeln(' implements HasToJson {');
}
- writeln(' implements HasToJson {');
indent(() {
if (emitSpecialStaticMembers(className)) {
writeln();

Powered by Google App Engine
This is Rietveld 408576698