MCPcopy Create free account
hub / github.com/cel-expr/cel-cpp / IsTargetNamespace

Function IsTargetNamespace

extensions/math_ext_macros.cc:43–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41static constexpr char kMathMax[] = "math.@max";
42
43bool IsTargetNamespace(const Expr &target) {
44 return target.has_ident_expr() &&
45 target.ident_expr().name() == kMathNamespace;
46}
47
48bool IsValidArgType(const Expr &arg) {
49 return absl::visit(

Callers 1

math_macrosFunction · 0.70

Calls 2

has_ident_exprMethod · 0.80
nameMethod · 0.45

Tested by

no test coverage detected