MCPcopy Index your code
hub / github.com/cockscomb/cel2sql / isBoolLiteral

Function isBoolLiteral

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

Source from the content-addressed store, hash-verified

797}
798
799func isBoolLiteral(node *exprpb.Expr) bool {
800 _, isConst := node.ExprKind.(*exprpb.Expr_ConstExpr)
801 if !isConst {
802 return false
803 }
804 _, isBool := node.GetConstExpr().ConstantKind.(*exprpb.Constant_BoolValue)
805 return isBool
806}
807
808func isStringLiteral(node *exprpb.Expr) bool {
809 _, isConst := node.ExprKind.(*exprpb.Expr_ConstExpr)

Callers 1

visitCallBinaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected