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

Function EnrichedParse

parser/parser.cc:1867–1875  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1865}
1866
1867absl::StatusOr<VerboseParsedExpr> EnrichedParse(
1868 absl::string_view expression, const std::vector<Macro>& macros,
1869 absl::string_view description, const ParserOptions& options) {
1870 CEL_ASSIGN_OR_RETURN(auto source,
1871 cel::NewSource(expression, std::string(description)));
1872 cel::MacroRegistry macro_registry;
1873 CEL_RETURN_IF_ERROR(macro_registry.RegisterMacros(macros));
1874 return EnrichedParse(*source, macro_registry, options);
1875}
1876
1877absl::StatusOr<VerboseParsedExpr> EnrichedParse(
1878 const cel::Source& source, const cel::MacroRegistry& registry,

Callers 3

TEST_PFunction · 0.85
TEST_PFunction · 0.85
TEST_PFunction · 0.85

Calls 4

ExprToProtoFunction · 0.85
SourceInfoToProtoFunction · 0.85
VerboseParsedExprClass · 0.85
RegisterMacrosMethod · 0.80

Tested by 2

TEST_PFunction · 0.68
TEST_PFunction · 0.68