@@ -308,14 +308,14 @@ func (e *errchkjson) inspectArgs(pass *analysis.Pass, args []ast.Expr) {
308
308
}
309
309
310
310
// Construct *types.Interface for interface encoding.TextMarshaler
311
- // type TextMarshaler interface {
312
- // MarshalText() (text []byte, err error)
313
- // }
314
311
//
312
+ // type TextMarshaler interface {
313
+ // MarshalText() (text []byte, err error)
314
+ // }
315
315
func textMarshalerInterface () * types.Interface {
316
316
textMarshalerInterface := types .NewInterfaceType ([]* types.Func {
317
- types .NewFunc (token .NoPos , nil , "MarshalText" , types .NewSignature (
318
- nil , nil , types .NewTuple (
317
+ types .NewFunc (token .NoPos , nil , "MarshalText" , types .NewSignatureType (
318
+ nil , nil , nil , nil , types .NewTuple (
319
319
types .NewVar (token .NoPos , nil , "text" ,
320
320
types .NewSlice (
321
321
types .Universe .Lookup ("byte" ).Type ())),
@@ -328,14 +328,14 @@ func textMarshalerInterface() *types.Interface {
328
328
}
329
329
330
330
// Construct *types.Interface for interface json.Marshaler
331
- // type Marshaler interface {
332
- // MarshalJSON() ([]byte, error)
333
- // }
334
331
//
332
+ // type Marshaler interface {
333
+ // MarshalJSON() ([]byte, error)
334
+ // }
335
335
func jsonMarshalerInterface () * types.Interface {
336
336
textMarshalerInterface := types .NewInterfaceType ([]* types.Func {
337
- types .NewFunc (token .NoPos , nil , "MarshalJSON" , types .NewSignature (
338
- nil , nil , types .NewTuple (
337
+ types .NewFunc (token .NoPos , nil , "MarshalJSON" , types .NewSignatureType (
338
+ nil , nil , nil , nil , types .NewTuple (
339
339
types .NewVar (token .NoPos , nil , "" ,
340
340
types .NewSlice (
341
341
types .Universe .Lookup ("byte" ).Type ())),
0 commit comments