(k, v value)
| 528 | } |
| 529 | |
| 530 | func (f *function) addConstant(k, v value) int { |
| 531 | if index, ok := f.constantLookup[k]; ok && f.f.constants[index] == v { |
| 532 | return index |
| 533 | } |
| 534 | index := len(f.f.constants) |
| 535 | f.constantLookup[k] = index |
| 536 | f.f.constants = append(f.f.constants, v) |
| 537 | return index |
| 538 | } |
| 539 | |
| 540 | func (f *function) NumberConstant(n float64) int { |
| 541 | if n == 0.0 || math.IsNaN(n) { |
no outgoing calls
no test coverage detected