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

Method arraySubquery

compiler/semantic/expr.go:1277–1287  ·  view source on GitHub ↗
(elems []sem.ArrayElem)

Source from the content-addressed store, hash-verified

1275}
1276
1277func (t *translator) arraySubquery(elems []sem.ArrayElem) *sem.SubqueryExpr {
1278 if len(elems) == 1 {
1279 if elem, ok := elems[0].(*sem.ExprElem); ok {
1280 if subquery, ok := elem.Expr.(*sem.SubqueryExpr); ok {
1281 subquery.Array = true
1282 return subquery
1283 }
1284 }
1285 }
1286 return nil
1287}
1288
1289func (t *translator) subqueryExpr(astExpr ast.Expr, array bool, body ast.Seq, inType super.Type) (*sem.SubqueryExpr, super.Type) {
1290 // We pass inType in whether or not it's correlated since an uncorrelated

Callers 1

exprMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected