MCPcopy Create free account
hub / github.com/JayXon/Leanify / Accept

Method Accept

lib/tinyxml2/tinyxml2.cpp:611–622  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

609
610
611bool XMLDocument::Accept( XMLVisitor* visitor ) const
612{
613 TIXMLASSERT( visitor );
614 if ( visitor->VisitEnter( *this ) ) {
615 for ( const XMLNode* node=FirstChild(); node; node=node->NextSibling() ) {
616 if ( !node->Accept( visitor ) ) {
617 break;
618 }
619 }
620 }
621 return visitor->VisitExit( *this );
622}
623
624
625// --------- XMLNode ----------- //

Callers

nothing calls this directly

Calls 4

FirstChildFunction · 0.85
VisitEnterMethod · 0.80
VisitExitMethod · 0.80
VisitMethod · 0.80

Tested by

no test coverage detected