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

Method getViewForNodePath

valdi/src/valdi/runtime/Context/ViewNodeTree.cpp:91–98  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89}
90
91Ref<View> ViewNodeTree::getViewForNodePath(const ViewNodePath& nodePath) const {
92 auto viewNode = getViewNodeForNodePath(nodePath);
93 if (viewNode == nullptr) {
94 return nullptr;
95 }
96
97 return viewNode->getViewAndDisablePooling();
98}
99
100Ref<ViewNode> ViewNodeTree::getViewNodeForNodePath(const ViewNodePath& nodePath) const {
101 auto current = getRootViewNode();

Callers 2

TEST_PFunction · 0.80
getViewInContextForIdMethod · 0.80

Calls 1

Tested by 1

TEST_PFunction · 0.64