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

Method CreateExpression

eval/public/cel_expression.h:107–112  ·  view source on GitHub ↗

Creates CelExpression object from a checked expression. This includes an AST, source info, type hints and ident hints. Method implementation is expected to create copy of checked_expr, so that the returned CelExpression is not dependent on the lifetime of the input arguments.

Source from the content-addressed store, hash-verified

105 // so that the returned CelExpression is not dependent on the lifetime of
106 // the input arguments.
107 virtual absl::StatusOr<std::unique_ptr<CelExpression>> CreateExpression(
108 const cel::expr::CheckedExpr* checked_expr) const {
109 // Default implementation just passes through the expr and source info.
110 return CreateExpression(&checked_expr->expr(),
111 &checked_expr->source_info());
112 }
113
114 // Creates CelExpression object from a checked expression.
115 // This includes an AST, source info, type hints and ident hints.

Callers 13

TEST_FFunction · 0.45
TESTFunction · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
TEST_FFunction · 0.45
TESTFunction · 0.45
TEST_PFunction · 0.45
ABSL_FLAGFunction · 0.45
ASSERT_OK_AND_ASSIGNFunction · 0.45
EvalCheckedExprFunction · 0.45
ParseAndEvaluateFunction · 0.45
EvalCheckedExprFunction · 0.45
EvalMethod · 0.45

Calls 2

source_infoMethod · 0.80
exprMethod · 0.45

Tested by 8

TEST_FFunction · 0.36
TESTFunction · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36
TEST_FFunction · 0.36
TESTFunction · 0.36
TEST_PFunction · 0.36
ABSL_FLAGFunction · 0.36
ASSERT_OK_AND_ASSIGNFunction · 0.36