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

Method reset

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

Source from the content-addressed store, hash-verified

459}
460
461void Node::reset() {
462 yoga::assertFatalWithNode(
463 this,
464 children_.empty(),
465 "Cannot reset a node which still has children attached");
466 yoga::assertFatalWithNode(
467 this, owner_ == nullptr, "Cannot reset a node still attached to a owner");
468
469 *this = Node{getConfig()};
470}
471
472} // namespace facebook::yoga

Callers

nothing calls this directly

Calls 3

assertFatalWithNodeFunction · 0.85
getConfigFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected