(method string)
| 68 | } |
| 69 | |
| 70 | func (p *Program) panicIfNoProgram(method string) { |
| 71 | if p.program == nil { |
| 72 | panic(method + ": should not be called without program") |
| 73 | } |
| 74 | } |
| 75 | |
| 76 | func (p *Program) GetProgram() *compiler.Program { |
| 77 | p.panicIfNoProgram("GetProgram") |
no test coverage detected