(first, rest any)
| 23317 | } |
| 23318 | |
| 23319 | func (c *current) onSQLBodySetOp1(first, rest any) (any, error) { |
| 23320 | out := first.(ast.SQLQueryBody) |
| 23321 | for _, o := range rest.([]any) { |
| 23322 | o := o.([]any) |
| 23323 | right := o[2].(ast.SQLQueryBody) |
| 23324 | out = &ast.SQLUnion{ |
| 23325 | Kind: "SQLUnion", |
| 23326 | Distinct: o[0].(bool), |
| 23327 | Left: out, |
| 23328 | Right: right, |
| 23329 | Loc: ast.Loc{First: out.Pos(), Last: right.End()}, |
| 23330 | } |
| 23331 | } |
| 23332 | return out, nil |
| 23333 | |
| 23334 | } |
| 23335 | |
| 23336 | func (p *parser) callonSQLBodySetOp1() (any, error) { |
| 23337 | stack := p.vstack[len(p.vstack)-1] |
no test coverage detected