()
| 22 | } |
| 23 | |
| 24 | func (p *ParamSet) nextArgNum() int { |
| 25 | for { |
| 26 | if _, ok := p.positionToName[p.argn]; !ok { |
| 27 | return p.argn |
| 28 | } |
| 29 | |
| 30 | p.argn++ |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | // Add adds a parameter to this set and returns the numbered location used for it |
| 35 | func (p *ParamSet) Add(param Param) int { |