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

Function EnableReferenceResolver

runtime/reference_resolver.cc:66–75  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

64} // namespace
65
66absl::Status EnableReferenceResolver(RuntimeBuilder& builder,
67 ReferenceResolverEnabled enabled) {
68 CEL_ASSIGN_OR_RETURN(RuntimeImpl * runtime_impl,
69 RuntimeImplFromBuilder(builder));
70 ABSL_ASSERT(runtime_impl != nullptr);
71
72 runtime_impl->expr_builder().AddAstTransform(
73 NewReferenceResolverExtension(Convert(enabled)));
74 return absl::OkStatus();
75}
76
77} // namespace cel

Callers 10

CompileAndEvalExprFunction · 0.85
TEST_PFunction · 0.85
SetUpMethod · 0.85
TESTFunction · 0.85
SetUpMethod · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85
TESTFunction · 0.85
SetupMethod · 0.85

Calls 5

ConvertFunction · 0.85
AddAstTransformMethod · 0.80
RuntimeImplFromBuilderFunction · 0.70
CEL_ASSIGN_OR_RETURNFunction · 0.50

Tested by 9

CompileAndEvalExprFunction · 0.68
TEST_PFunction · 0.68
SetUpMethod · 0.68
TESTFunction · 0.68
SetUpMethod · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68
TESTFunction · 0.68