Something went wrong. Try again.
🌱 A minimal programming language and compiler. git.urbach.dev/cli/q
high-performance programming-language compiler
Something went wrong. Try again.
1234567891011121314151617181920212223package core
import ( "git.urbach.dev/cli/q/src/ssa")
// decompose splits structs into their individual fields.func (f *Function) decompose(values []ssa.Value) ([]ssa.Value, error) { args := make([]ssa.Value, 0, len(values))
for _, value := range values { structure, isStruct := value.(*ssa.Struct)
if isStruct { args = f.decomposeStruct(args, structure) continue }
args = append(args, value) }
return args, nil}