| 35 | using ::cel::runtime_internal::RuntimeImpl; |
| 36 | |
| 37 | absl::StatusOr<RuntimeImpl*> RuntimeImplFromBuilder(RuntimeBuilder& builder) { |
| 38 | Runtime& runtime = RuntimeFriendAccess::GetMutableRuntime(builder); |
| 39 | |
| 40 | if (RuntimeFriendAccess::RuntimeTypeId(runtime) != |
| 41 | NativeTypeId::For<RuntimeImpl>()) { |
| 42 | return absl::UnimplementedError( |
| 43 | "regex precompilation only supported on the default cel::Runtime " |
| 44 | "implementation."); |
| 45 | } |
| 46 | |
| 47 | RuntimeImpl& runtime_impl = down_cast<RuntimeImpl&>(runtime); |
| 48 | |
| 49 | return &runtime_impl; |
| 50 | } |
| 51 | |
| 52 | google::api::expr::runtime::ReferenceResolverOption Convert( |
| 53 | ReferenceResolverEnabled enabled) { |
no outgoing calls
no test coverage detected