(val value)
| 1173 | } |
| 1174 | |
| 1175 | func (i *interpreter) getFunction(val value) (*valueFunction, error) { |
| 1176 | switch v := val.(type) { |
| 1177 | case *valueFunction: |
| 1178 | return v, nil |
| 1179 | default: |
| 1180 | return nil, i.typeErrorSpecific(val, &valueFunction{}) |
| 1181 | } |
| 1182 | } |
| 1183 | |
| 1184 | //nolint:unused |
| 1185 | func (i *interpreter) evaluateFunction(pv potentialValue) (*valueFunction, error) { |
no test coverage detected