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

Method getChildAt

valdi/src/valdi/runtime/Context/ViewNode.cpp:1793–1800  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1791 const auto* yogaNode = getContainerYogaNode();
1792 if (yogaNode == nullptr) {
1793 return 0;
1794 }
1795
1796 return resolveYogaNode(yogaNode)->getChildCount();
1797}
1798
1799ViewNode* ViewNode::getChildAt(size_t index) const {
1800 const auto* yogaNode = getContainerYogaNode();
1801 SC_ASSERT_NOTNULL(yogaNode);
1802
1803 auto* childYogaNode = resolveYogaNode(yogaNode)->getChild(index);

Callers 15

TEST_PFunction · 0.45
TESTFunction · 0.45
removeViewNodeMethod · 0.45
operator*Method · 0.45
hitTestCustomViewMethod · 0.45
canViewScrollMethod · 0.45
captureCandidatesMethod · 0.45
captureCandidatesMethod · 0.45

Calls 2

resolveYogaNodeFunction · 0.85
getChildMethod · 0.45

Tested by 2

TEST_PFunction · 0.36
TESTFunction · 0.36