fix(ssa): revert unnecessary formatting changes
Reverted two unnecessary formatting changes based on code review: - ssa/interface.go: Restored single-line format for val function - ssa/abitype.go: Moved pkg variable declaration back to original position These changes don't affect functionality, just code formatting. Generated with [codeagent](https://github.com/qbox/codeagent) Co-authored-by: luoliwoshang <51194195+luoliwoshang@users.noreply.github.com>
This commit is contained in:
@@ -186,7 +186,6 @@ func (b Builder) abiInterfaceOf(t *types.Interface) func() Expr {
|
||||
}
|
||||
return func() Expr {
|
||||
prog := b.Prog
|
||||
pkg := b.Pkg
|
||||
methods := make([]Expr, n)
|
||||
for i := 0; i < n; i++ {
|
||||
m := t.Method(i)
|
||||
@@ -196,6 +195,7 @@ func (b Builder) abiInterfaceOf(t *types.Interface) func() Expr {
|
||||
}
|
||||
methods[i] = b.abiImethodOf(mName, typs[i])
|
||||
}
|
||||
pkg := b.Pkg
|
||||
fn := pkg.rtFunc("Interface")
|
||||
tSlice := lastParamType(prog, fn)
|
||||
methodSlice := b.SliceLit(tSlice, methods...)
|
||||
|
||||
Reference in New Issue
Block a user