| 300 | } |
| 301 | |
| 302 | string FormatArraysList(const Model& model, const std::vector<string>& list) { |
| 303 | if (list.empty()) { |
| 304 | return "[]"; |
| 305 | } |
| 306 | string result = ""; |
| 307 | if (list.size() > 1) { |
| 308 | result += "[ "; |
| 309 | } |
| 310 | for (std::size_t i = 0; i < list.size(); i++) { |
| 311 | if (i > 0) { |
| 312 | result += ", "; |
| 313 | } |
| 314 | result += list[i]; |
| 315 | } |
| 316 | if (list.size() > 1) { |
| 317 | result += " ]"; |
| 318 | } |
| 319 | return result; |
| 320 | } |
| 321 | |
| 322 | const char* OperatorTypeName(OperatorType type) { |
| 323 | switch (type) { |
no test coverage detected