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

Function isNullLiteral

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

Source from the content-addressed store, hash-verified

788}
789
790func isNullLiteral(node *exprpb.Expr) bool {
791 _, isConst := node.ExprKind.(*exprpb.Expr_ConstExpr)
792 if !isConst {
793 return false
794 }
795 _, isNull := node.GetConstExpr().ConstantKind.(*exprpb.Constant_NullValue)
796 return isNull
797}
798
799func isBoolLiteral(node *exprpb.Expr) bool {
800 _, isConst := node.ExprKind.(*exprpb.Expr_ConstExpr)

Callers 1

visitCallBinaryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected