(val value)
| 1155 | } |
| 1156 | |
| 1157 | func (i *interpreter) getArray(val value) (*valueArray, error) { |
| 1158 | switch v := val.(type) { |
| 1159 | case *valueArray: |
| 1160 | return v, nil |
| 1161 | default: |
| 1162 | return nil, i.typeErrorSpecific(val, &valueArray{}) |
| 1163 | } |
| 1164 | } |
| 1165 | |
| 1166 | //nolint:unused |
| 1167 | func (i *interpreter) evaluateArray(pv potentialValue) (*valueArray, error) { |
no test coverage detected