fmt: fix alignment of struct init fields (#22025)

This commit is contained in:
yuyi 2024-08-11 14:11:24 +08:00 committed by GitHub
parent 99da5726db
commit c51d30bf53
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
671 changed files with 18817 additions and 18787 deletions

View file

@ -101,7 +101,7 @@ pub fn (mut func Function) new_local(v ValType) LocalIndex {
pub fn (mut func Function) new_local_named(v ValType, name string) LocalIndex {
ret := func.locals.len
func.locals << FunctionLocal{
typ: v
typ: v
name: name
}
return ret
@ -991,7 +991,7 @@ pub fn (mut func Function) call(name string) {
func.code << 0x10 // call
func.patches << CallPatch(FunctionCallPatch{
name: name
pos: func.code.len
pos: func.code.len
})
}
@ -1001,9 +1001,9 @@ pub fn (mut func Function) call(name string) {
pub fn (mut func Function) call_import(mod string, name string) {
func.code << 0x10 // call
func.patches << CallPatch(ImportCallPatch{
mod: mod
mod: mod
name: name
pos: func.code.len
pos: func.code.len
})
}
@ -1198,7 +1198,7 @@ pub fn (mut func Function) ref_func(name string) {
func.code << 0xD2 // ref.func
func.patches << CallPatch(FunctionCallPatch{
name: name
pos: func.code.len
pos: func.code.len
})
}
@ -1208,8 +1208,8 @@ pub fn (mut func Function) ref_func(name string) {
pub fn (mut func Function) ref_func_import(mod string, name string) {
func.code << 0xD2 // ref.func
func.patches << CallPatch(ImportCallPatch{
mod: mod
mod: mod
name: name
pos: func.code.len
pos: func.code.len
})
}