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

Function NewStringError

compiler/semantic/sem/expr.go:267–269  ·  view source on GitHub ↗
(n ast.Node, message string)

Source from the content-addressed store, hash-verified

265}
266
267func NewStringError(n ast.Node, message string) Expr {
268 return NewCall(n, "error", []Expr{NewLiteral(n, super.NewString(message))})
269}
270
271func NewLiteral(n ast.Node, val super.Value) Expr {
272 if super.IsPrimitiveType(val.Type()) {

Callers 2

exprMethod · 0.92
semCaseExprMethod · 0.92

Calls 3

NewStringFunction · 0.92
NewCallFunction · 0.70
NewLiteralFunction · 0.70

Tested by

no test coverage detected