| 575 | } |
| 576 | |
| 577 | ~Schema() { |
| 578 | if (allocator_) { |
| 579 | allocator_->Free(enum_); |
| 580 | } |
| 581 | if (properties_) { |
| 582 | for (SizeType i = 0; i < propertyCount_; i++) |
| 583 | properties_[i].~Property(); |
| 584 | AllocatorType::Free(properties_); |
| 585 | } |
| 586 | if (patternProperties_) { |
| 587 | for (SizeType i = 0; i < patternPropertyCount_; i++) |
| 588 | patternProperties_[i].~PatternProperty(); |
| 589 | AllocatorType::Free(patternProperties_); |
| 590 | } |
| 591 | AllocatorType::Free(itemsTuple_); |
| 592 | #if RAPIDJSON_SCHEMA_HAS_REGEX |
| 593 | if (pattern_) { |
| 594 | pattern_->~RegexType(); |
| 595 | allocator_->Free(pattern_); |
| 596 | } |
| 597 | #endif |
| 598 | } |
| 599 | |
| 600 | bool BeginValue(Context& context) const { |
| 601 | if (context.inArray) { |
nothing calls this directly
no test coverage detected