MCPcopy Create free account
hub / github.com/cockscomb/cel2sql / isStringLiteral

Function isStringLiteral

cel2sql.go:808–815  ·  view source on GitHub ↗
(node *exprpb.Expr)

Source from the content-addressed store, hash-verified

806}
807
808func isStringLiteral(node *exprpb.Expr) bool {
809 _, isConst := node.ExprKind.(*exprpb.Expr_ConstExpr)
810 if !isConst {
811 return false
812 }
813 _, isString := node.GetConstExpr().ConstantKind.(*exprpb.Constant_StringValue)
814 return isString
815}
816
817// bytesToOctets converts byte sequences to a string using a three digit octal encoded value
818// per byte.

Callers 1

extractFieldNameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected