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

Method arrayElems

compiler/sfmt/ast.go:315–328  ·  view source on GitHub ↗
(elems []ast.ArrayElem)

Source from the content-addressed store, hash-verified

313}
314
315func (c *canon) arrayElems(elems []ast.ArrayElem) {
316 for k, elem := range elems {
317 if k > 0 {
318 c.write(",")
319 }
320 switch elem := elem.(type) {
321 case *ast.SpreadElem:
322 c.write("...")
323 c.expr(elem.Expr, "")
324 case *ast.ExprElem:
325 c.expr(elem.Expr, "")
326 }
327 }
328}
329
330func (c *canon) binary(e *ast.BinaryExpr, parent string) {
331 switch e.Op {

Callers 1

exprMethod · 0.95

Calls 2

exprMethod · 0.95
writeMethod · 0.45

Tested by

no test coverage detected