恐慌错误: 构建代码时有超过 1 个通用类型参数
golang.org/x/tools/go/ast/astutil.Apply.func1() /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:46 +0xb8 panic: unhandled AST node: *ast.IndexListExpr [recovered] panic: unhandled AST node: *ast.IndexListExpr goroutine 1 [running]: golang.org/x/tools/go/ast/astutil.Apply.func1() /Users/littlekey/.local/share/mise/installs/go/1.22.8/src/runtime/panic.go:770 +0x124 GitHub.com/google/wire/internal/wire.copyAST.func1(0x1400035a360?) /Users/littlekey/go/pkg/mod/GitHub.com/google/[email protected]/internal/wire/copyast.go:392 +0x24a8 golang.org/x/tools/go/ast/astutil.(*application).apply(0x1400035a360, {0x104a20720?, 0x1400018f788?}, {0x1049ad5e8?, 0x1049ca820?}, 0x0?, {0x104a20540?, 0x14000352680?}) /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:452 +0x157c golang.org/x/tools/go/ast/astutil.(*application).apply(0x1400035a360, {0x104a20428?, 0x140003526c0?}, {0x104947882?, 0x5?}, 0x1047b83d0?, {0x104a20720?, 0x1400018f788?}) /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:272 +0x1de8 golang.org/x/tools/go/ast/astutil.(*application).apply(0x1400035a360, {0x104a207c0?, 0x1400034c960?}, {0x1049478a2?, 0x0?}, 0x1400018f980?, {0x104a20428?, 0x140003526c0?}) /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:220 +0x1974 golang.org/x/tools/go/ast/astutil.(*application).applyList(0x1400035a360, {0x104a207c0, 0x1400034c960}, {0x1049478a2, 0x4}) /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:482 +0x78 golang.org/x/tools/go/ast/astutil.(*application).apply(0x1400035a360, {0x104a20450?, 0x140003580c0?}, {0x104948376?, 0xa?}, 0x1?, {0x104a207c0?, 0x1400034c960?}) /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:225 +0xd08 golang.org/x/tools/go/ast/astutil.(*application).apply(0x1400035a360, {0x104a201f8?, 0x1400034c9c0?}, {0x104947882?, 0x0?}, 0x5?, {0x104a20450?, 0x140003580c0?}) /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:298 +0x6f0 golang.org/x/tools/go/ast/astutil.(*application).apply(0x1400035a360, {0x104a20b50?, 0x140001a7590?}, {0x10494789e?, 0x10?}, 0x104b99420?, {0x104a201f8?, 0x1400034c9c0?}) /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:426 +0x109c golang.org/x/tools/go/ast/astutil.Apply({0x104a201f8, 0x1400034c9c0}, 0x0, 0x140001a7580) /Users/littlekey/go/pkg/mod/golang.org/x/[email protected]/go/ast/astutil/rewrite.go:51 +0x10c GitHub.com/google/wire/internal/wire.copyAST({0x104a201f8, 0x1400034c9c0}) /Users/littlekey/go/pkg/mod/GitHub.com/google/[email protected]/internal/wire/copyast.go:36 +0x7c GitHub.com/google/wire/internal/wire.(*gen).rewritePkgRefs(0x14000344e10, 0x140001c1a40, {0x104a201f8,
内容来源: google/wire