(i *interpreter, index int)
| 143 | } |
| 144 | |
| 145 | func (s *valueStringTree) index(i *interpreter, index int) (value, error) { |
| 146 | if 0 <= index && index < s.len { |
| 147 | s.flattenToLeft() |
| 148 | return s.left.index(i, index) |
| 149 | } |
| 150 | return nil, i.Error(fmt.Sprintf("Index %d out of bounds, not within [0, %v)", index, s.length())) |
| 151 | } |
| 152 | |
| 153 | func (s *valueStringTree) getRunes() []rune { |
| 154 | s.flattenToLeft() |
nothing calls this directly
no test coverage detected