(out []*descriptor.ResponseFile)
| 245 | } |
| 246 | |
| 247 | func emitFiles(out []*descriptor.ResponseFile) { |
| 248 | files := make([]*pluginpb.CodeGeneratorResponse_File, len(out)) |
| 249 | for idx, item := range out { |
| 250 | files[idx] = item.CodeGeneratorResponse_File |
| 251 | } |
| 252 | resp := &pluginpb.CodeGeneratorResponse{File: files} |
| 253 | codegenerator.SetSupportedFeaturesOnCodeGeneratorResponse(resp) |
| 254 | emitResp(resp) |
| 255 | } |
| 256 | |
| 257 | func emitError(err error) { |
| 258 | emitResp(&pluginpb.CodeGeneratorResponse{Error: proto.String(err.Error())}) |
no test coverage detected