operand-func.go: removed commented code
This commit is contained in:
parent
80b7d5b988
commit
a22047e84e
@ -107,12 +107,6 @@ func evalFuncDef(ctx ExprContext, self *term) (v any, err error) {
|
||||
paramList := make([]string, 0, len(self.children))
|
||||
for _, param := range self.children {
|
||||
paramList = append(paramList, param.source())
|
||||
// if paramName, ok := param.value().(string); ok {
|
||||
// paramList = append(paramList, paramName)
|
||||
// } else {
|
||||
// err = fmt.Errorf("invalid function definition: formal param nr %d must be an identifier", i+1)
|
||||
// break
|
||||
// }
|
||||
}
|
||||
v = &funcDefFunctor{
|
||||
params: paramList,
|
||||
|
Loading…
Reference in New Issue
Block a user