(s ast.FromSource)
| 848 | } |
| 849 | |
| 850 | func (c *canon) fromSource(s ast.FromSource) { |
| 851 | switch s := s.(type) { |
| 852 | case *ast.FromEval: |
| 853 | c.expr(s.Expr, "") |
| 854 | case *ast.GlobExpr: |
| 855 | c.write(s.Pattern) |
| 856 | case *ast.RegexpExpr: |
| 857 | c.write("/" + s.Pattern + "/") |
| 858 | case *ast.Text: |
| 859 | c.write(sup.QuotedName(s.Text)) |
| 860 | default: |
| 861 | panic(s) |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | func (c *canon) tableExpr(e ast.SQLTableExpr) { |
| 866 | switch e := e.(type) { |
no test coverage detected