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

Function IsMutableListValue

common/values/value_builder.cc:533–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

531}
532
533bool IsMutableListValue(const Value& value) {
534 if (auto custom_list_value = value.AsCustomList(); custom_list_value) {
535 NativeTypeId native_type_id = custom_list_value->GetTypeId();
536 if (native_type_id == NativeTypeId::For<MutableListValue>() ||
537 native_type_id == NativeTypeId::For<MutableCompatListValue>()) {
538 return true;
539 }
540 }
541 return false;
542}
543
544bool IsMutableListValue(const ListValue& value) {
545 if (auto custom_list_value = value.AsCustom(); custom_list_value) {

Callers 3

value_builder.ccFile · 0.85
TEST_FFunction · 0.85
TEST_PFunction · 0.85

Calls 3

AsCustomListMethod · 0.45
GetTypeIdMethod · 0.45
AsCustomMethod · 0.45

Tested by 2

TEST_FFunction · 0.68
TEST_PFunction · 0.68