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

Method exprNullable

compiler/semantic/expr.go:673–678  ·  view source on GitHub ↗
(e ast.Expr, inType super.Type)

Source from the content-addressed store, hash-verified

671}
672
673func (t *translator) exprNullable(e ast.Expr, inType super.Type) (sem.Expr, super.Type) {
674 if e == nil {
675 return nil, super.TypeNull
676 }
677 return t.expr(e, inType)
678}
679
680func (t *translator) semCaseExpr(c *ast.CaseExpr, inType super.Type) (sem.Expr, super.Type) {
681 e, exprType := t.exprNullable(c.Expr, inType)

Callers 4

semOpMethod · 0.95
exprMethod · 0.95
semCaseExprMethod · 0.95
aggFuncMethod · 0.95

Calls 1

exprMethod · 0.95

Tested by

no test coverage detected