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

Function GetFlatExprBuilder

extensions/select_optimization.cc:904–915  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

902}
903
904google::api::expr::runtime::FlatExprBuilder* GetFlatExprBuilder(
905 RuntimeBuilder& builder) {
906 auto& runtime =
907 runtime_internal::RuntimeFriendAccess::GetMutableRuntime(builder);
908 if (runtime_internal::RuntimeFriendAccess::RuntimeTypeId(runtime) ==
909 NativeTypeId::For<runtime_internal::RuntimeImpl>()) {
910 auto& runtime_impl =
911 cel::internal::down_cast<runtime_internal::RuntimeImpl&>(runtime);
912 return &runtime_impl.expr_builder();
913 }
914 return nullptr;
915}
916
917} // namespace
918

Callers 1

EnableSelectOptimizationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected