(i *interpreter, index int)
| 291 | } |
| 292 | |
| 293 | func (arr *valueArray) index(i *interpreter, index int) (value, error) { |
| 294 | if 0 <= index && index < arr.length() { |
| 295 | return i.evaluatePV(arr.elements[index]) |
| 296 | } |
| 297 | return nil, i.Error(fmt.Sprintf("Index %d out of bounds, not within [0, %v)", index, arr.length())) |
| 298 | } |
| 299 | |
| 300 | func (arr *valueArray) length() int { |
| 301 | return len(arr.elements) |
nothing calls this directly
no test coverage detected