| 187 | } |
| 188 | |
| 189 | void StructDef::writeToJson(QJsonObject& json) |
| 190 | { |
| 191 | json["label"] = m_label; |
| 192 | json["length"] = static_cast<double>(m_length); |
| 193 | |
| 194 | QJsonArray fieldArray; |
| 195 | for (FieldDef* const field : m_fields) |
| 196 | { |
| 197 | QJsonObject node; |
| 198 | field->writeToJson(node); |
| 199 | fieldArray.append(node); |
| 200 | } |
| 201 | json["fieldList"] = fieldArray; |
| 202 | } |
| 203 | |
| 204 | bool StructDef::isSame(const StructDef* other) const |
| 205 | { |
nothing calls this directly
no outgoing calls
no test coverage detected