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

Method insertChild

third-party/yoga/src/yoga/node/Node.cpp:146–152  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146void Node::insertChild(Node* child, size_t index) {
147 if (child->style().display() == Display::Contents) {
148 contentsChildrenCount_++;
149 }
150
151 children_.insert(children_.begin() + static_cast<ptrdiff_t>(index), child);
152}
153
154void Node::setConfig(yoga::Config* config) {
155 yoga::assertFatal(

Callers 1

YGNodeInsertChildFunction · 0.45

Calls 2

insertMethod · 0.65
beginMethod · 0.45

Tested by

no test coverage detected