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

Function ASTExpr

compiler/sfmt/ast.go:28–37  ·  view source on GitHub ↗
(e ast.Expr)

Source from the content-addressed store, hash-verified

26}
27
28func ASTExpr(e ast.Expr) string {
29 d := &canon{
30 shared: shared{formatter: formatter{tab: 2}},
31 head: true,
32 first: true,
33 }
34 d.expr(e, "")
35 d.flush()
36 return d.String()
37}
38
39type canon struct {
40 shared

Callers 1

deriveNameFromExprFunction · 0.92

Calls 3

exprMethod · 0.95
StringMethod · 0.65
flushMethod · 0.45

Tested by

no test coverage detected