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