AfterInit bugfix: add param Builder

This commit is contained in:
xushiwei
2024-05-24 02:42:10 +08:00
parent b66827998d
commit 418c37dd52
4 changed files with 15 additions and 4 deletions

View File

@@ -238,6 +238,13 @@ func newParams(fn Type, prog Program) (params []Type, hasVArg bool) {
return
}
/*
// Name returns the function's name.
func (p Function) Name() string {
return p.impl.Name()
}
*/
// Params returns the function's ith parameter.
func (p Function) Param(i int) Expr {
i += p.base // skip if hasFreeVars