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

Function quoteString

compiler/semantic/expr.go:1079–1085  ·  view source on GitHub ↗
(e *ast.DoubleQuoteExpr)

Source from the content-addressed store, hash-verified

1077}
1078
1079func quoteString(e *ast.DoubleQuoteExpr) (string, bool) {
1080 v, err := sup.ParsePrimitive("string", e.Text)
1081 if err == nil {
1082 return v.AsString(), true
1083 }
1084 return "", false
1085}
1086
1087func (t *translator) fields(exprs []ast.Expr, inType super.Type) ([]sem.Expr, []super.Type) {
1088 fields := make([]sem.Expr, 0, len(exprs))

Callers 2

deriveNameFromExprFunction · 0.85
idStringFunction · 0.85

Calls 2

ParsePrimitiveFunction · 0.92
AsStringMethod · 0.80

Tested by

no test coverage detected