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

Method setParentTree

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

Source from the content-addressed store, hash-verified

891}
892
893void ViewNodeTree::setParentTree(const Ref<ViewNodeTree>& parentTree) {
894 if (parentTree == nullptr) {
895 return;
896 }
897
898 for (const auto& it : parentTree->_viewFactories) {
899 if (getViewFactory(it.first) == nullptr) {
900 registerLocalViewFactory(it.first, it.second);
901 }
902 }
903}
904
905ViewTransactionScope& ViewNodeTree::getCurrentViewTransactionScope() {
906 const auto& ref = getCurrentViewTransactionScopeRef();

Callers 1

setParentContextMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected