@@ -197,10 +197,10 @@ func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.Generated
197197 g .P ("//" )
198198 g .P (deprecationComment )
199199 }
200- g .Annotate (clientName , service .Location )
200+ g .AnnotateSymbol (clientName , protogen. Annotation { Location : service .Location } )
201201 g .P ("type " , clientName , " interface {" )
202202 for _ , method := range service .Methods {
203- g .Annotate (clientName + "." + method .GoName , method .Location )
203+ g .AnnotateSymbol (clientName + "." + method .GoName , protogen. Annotation { Location : method .Location } )
204204 if method .Desc .Options ().(* descriptorpb.MethodOptions ).GetDeprecated () {
205205 g .P (deprecationComment )
206206 }
@@ -250,10 +250,10 @@ func genService(gen *protogen.Plugin, file *protogen.File, g *protogen.Generated
250250 g .P ("//" )
251251 g .P (deprecationComment )
252252 }
253- g .Annotate (serverType , service .Location )
253+ g .AnnotateSymbol (serverType , protogen. Annotation { Location : service .Location } )
254254 g .P ("type " , serverType , " interface {" )
255255 for _ , method := range service .Methods {
256- g .Annotate (serverType + "." + method .GoName , method .Location )
256+ g .AnnotateSymbol (serverType + "." + method .GoName , protogen. Annotation { Location : method .Location } )
257257 if method .Desc .Options ().(* descriptorpb.MethodOptions ).GetDeprecated () {
258258 g .P (deprecationComment )
259259 }
0 commit comments