MCPcopy Create free account
hub / github.com/brimdata/super / fromSource

Method fromSource

compiler/sfmt/ast.go:850–863  ·  view source on GitHub ↗
(s ast.FromSource)

Source from the content-addressed store, hash-verified

848}
849
850func (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
865func (c *canon) tableExpr(e ast.SQLTableExpr) {
866 switch e := e.(type) {

Callers 1

fromItemMethod · 0.95

Calls 3

exprMethod · 0.95
QuotedNameFunction · 0.92
writeMethod · 0.45

Tested by

no test coverage detected