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

Function appendAllViews

valdi/src/valdi/runtime/Runtime.cpp:348–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

346 if (viewNodeTree != nullptr) {
347 destroyViewNodeTree(*viewNodeTree);
348 }
349}
350
351void appendAllViews(ViewNode* viewNode, std::vector<Ref<View>>& views) {
352 if (viewNode->hasView()) {
353 views.emplace_back(viewNode->getView());
354 }
355
356 for (auto* child : *viewNode) {
357 appendAllViews(child, views);
358 }
359}

Callers

nothing calls this directly

Calls 2

hasViewMethod · 0.80
getViewMethod · 0.45

Tested by

no test coverage detected