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

Method PrintProto

testutil/expr_printer.cc:317–324  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317std::string ExprPrinter::PrintProto(const cel::expr::Expr& expr) const {
318 StringBuilder w(adorner_);
319 absl::StatusOr<std::unique_ptr<Ast>> ast = CreateAstFromParsedExpr(expr);
320 if (!ast.ok()) {
321 return std::string(ast.status().message());
322 }
323 return w.Print(ast.value()->root_expr());
324}
325
326std::string ExprPrinter::Print(const Expr& expr) const {
327 StringBuilder w(adorner_);

Callers 4

TEST_PFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80

Calls 5

messageMethod · 0.80
CreateAstFromParsedExprFunction · 0.50
okMethod · 0.45
PrintMethod · 0.45
valueMethod · 0.45

Tested by 4

TEST_PFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64