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

Function idString

compiler/semantic/expr.go:1069–1077  ·  view source on GitHub ↗
(e ast.Expr)

Source from the content-addressed store, hash-verified

1067}
1068
1069func idString(e ast.Expr) (string, bool) {
1070 switch e := e.(type) {
1071 case *ast.IDExpr:
1072 return e.Name, true
1073 case *ast.DoubleQuoteExpr:
1074 return quoteString(e)
1075 }
1076 return "", false
1077}
1078
1079func quoteString(e *ast.DoubleQuoteExpr) (string, bool) {
1080 v, err := sup.ParsePrimitive("string", e.Text)

Callers 1

dottedNameFunction · 0.85

Calls 1

quoteStringFunction · 0.85

Tested by

no test coverage detected