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

Method attachViewNode

valdi/src/valdi/runtime/Attributes/Yoga/Yoga.cpp:31–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29}
30
31void Yoga::attachViewNode(YGNode* node, ViewNode* viewNode) {
32 facebook::yoga::resolveRef(node)->setContext(viewNode);
33}
34
35ViewNode* Yoga::getAttachedViewNode(YGNode* node) {
36 return reinterpret_cast<ViewNode*>(facebook::yoga::resolveRef(node)->getContext());

Callers

nothing calls this directly

Calls 2

resolveRefFunction · 0.50
setContextMethod · 0.45

Tested by

no test coverage detected