| 114 | } |
| 115 | |
| 116 | bool EndArray(SizeType memberCount = 0) { |
| 117 | (void)memberCount; |
| 118 | RAPIDJSON_ASSERT(Base::level_stack_.GetSize() >= sizeof(typename Base::Level)); |
| 119 | RAPIDJSON_ASSERT(Base::level_stack_.template Top<typename Base::Level>()->inArray); |
| 120 | bool empty = Base::level_stack_.template Pop<typename Base::Level>(1)->valueCount == 0; |
| 121 | |
| 122 | if (!empty) { |
| 123 | Base::os_->Put('\n'); |
| 124 | WriteIndent(); |
| 125 | } |
| 126 | if (!Base::WriteEndArray()) |
| 127 | return false; |
| 128 | if (Base::level_stack_.Empty()) // end of json text |
| 129 | Base::os_->Flush(); |
| 130 | return true; |
| 131 | } |
| 132 | |
| 133 | //@} |
| 134 |
nothing calls this directly
no test coverage detected