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

Method funcRefAsCall

compiler/sfmt/ast.go:294–305  ·  view source on GitHub ↗
(f ast.Expr)

Source from the content-addressed store, hash-verified

292}
293
294func (c *canon) funcRefAsCall(f ast.Expr) {
295 switch f := f.(type) {
296 case *ast.FuncNameExpr:
297 c.write("%s", f.Name)
298 case *ast.LambdaExpr:
299 c.write("(")
300 c.lambda(f)
301 c.write(")")
302 default:
303 c.expr(f, "")
304 }
305}
306
307func (c *canon) lambda(lambda *ast.LambdaExpr) {
308 c.write("(lambda ")

Callers 1

exprMethod · 0.95

Calls 3

lambdaMethod · 0.95
exprMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected