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

Method exprs

compiler/semantic/expr.go:948–957  ·  view source on GitHub ↗
(in []ast.Expr, inType super.Type)

Source from the content-addressed store, hash-verified

946}
947
948func (t *translator) exprs(in []ast.Expr, inType super.Type) ([]sem.Expr, []super.Type) {
949 exprs := make([]sem.Expr, 0, len(in))
950 types := make([]super.Type, 0, len(in))
951 for _, expr := range in {
952 expr, typ := t.expr(expr, inType)
953 exprs = append(exprs, expr)
954 types = append(types, typ)
955 }
956 return exprs, types
957}
958
959func (t *translator) assignments(assignments []ast.Assignment, inType super.Type) ([]sem.Assignment, []pathType) {
960 exprs := make([]sem.Assignment, 0, len(assignments))

Callers 2

semOpMethod · 0.95
semCallMethod · 0.95

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected