MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getFunctionRef

Method getFunctionRef

valdi_core/src/valdi_core/cpp/Utils/Value.cpp:409–415  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

407}
408
409Ref<ValueFunction> Value::getFunctionRef() const noexcept {
410 if (getType() == ValueType::Function) {
411 return getUnsafeTypedRefPointer<ValueFunction>();
412 }
413
414 return nullptr;
415}
416
417Ref<ValueArray> Value::getArrayRef() const noexcept {
418 if (getType() == ValueType::Array) {

Callers 15

toJavaObjectFunction · 0.45
TEST_PFunction · 0.45
TEST_PMethod · 0.45
TEST_PFunction · 0.45
toFunctionFunction · 0.45
doBenchFunction · 0.45
TESTFunction · 0.45
TESTFunction · 0.45
onNextLayoutMethod · 0.45

Calls 1

getTypeFunction · 0.85

Tested by 7

TEST_PFunction · 0.36
TEST_PMethod · 0.36
TEST_PFunction · 0.36
toFunctionFunction · 0.36
doBenchFunction · 0.36
TESTFunction · 0.36
TESTFunction · 0.36