adapted to the new GetFuncInfo() specification

This commit is contained in:
2024-04-26 04:36:03 +02:00
parent 761ec868e6
commit d354102c6a
4 changed files with 6 additions and 9 deletions
+2 -4
View File
@@ -11,9 +11,7 @@ import (
// -------- function call term
func newFuncCallTerm(tk *Token, args []*term) *term {
return &term{
tk: *tk,
// class: classVar,
// kind: kindUnknown,
tk: *tk,
parent: nil,
children: args,
position: posLeaf,
@@ -44,7 +42,7 @@ func evalFuncCall(parentCtx ExprContext, self *term) (v any, err error) {
}
// Export functions
for _, refName := range ctx.EnumFuncs(func(name string) bool { return exportAll || name[0] == '@' }) {
if info := ctx.GetFuncInfo(refName); info != nil {
if info, _ := ctx.GetFuncInfo(refName); info != nil {
exportFunc(parentCtx, refName, info)
}
}