MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / skip_section

Method skip_section

core/io/xml_parser.cpp:524–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

522}
523
524void XMLParser::skip_section() {
525 // skip if this element is empty anyway.
526 if (is_empty()) {
527 return;
528 }
529
530 // read until we've reached the last element in this section
531 int tagcount = 1;
532
533 while (tagcount && read() == OK) {
534 if (get_node_type() == XMLParser::NODE_ELEMENT &&
535 !is_empty()) {
536 ++tagcount;
537 } else if (get_node_type() == XMLParser::NODE_ELEMENT_END) {
538 --tagcount;
539 }
540 }
541}
542
543void XMLParser::close() {
544 if (data_copy) {

Callers 15

_parse_imageMethod · 0.80
_parse_materialMethod · 0.80
_parse_effectMethod · 0.80
_parse_cameraMethod · 0.80
_parse_lightMethod · 0.80
_parse_curve_geometryMethod · 0.80
_parse_mesh_geometryMethod · 0.80
_parse_animationMethod · 0.80
_parse_animation_clipMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected