Helper functions
(symbol string)
| 148 | // Helper functions |
| 149 | |
| 150 | func mustName(symbol string) ast.Constant { |
| 151 | c, err := ast.Name(symbol) |
| 152 | if err != nil { |
| 153 | panic(err) |
| 154 | } |
| 155 | return c |
| 156 | } |
| 157 | |
| 158 | func makePair(fst, snd ast.Constant) ast.Constant { |
| 159 | return ast.Pair(&fst, &snd) |
no test coverage detected