| 243 | } |
| 244 | |
| 245 | nlohmann::json toJSON() const override { |
| 246 | nlohmann::json ret = nlohmann::json::object(); |
| 247 | |
| 248 | auto& data = ret["data"]; |
| 249 | data = nlohmann::json::array(); |
| 250 | for (auto& pair : dataInputs()) { |
| 251 | data.push_back({{pair.name, pair.type.qualifiedName()}}); |
| 252 | } |
| 253 | |
| 254 | auto& exec = ret["exec"]; |
| 255 | exec = nlohmann::json::array(); |
| 256 | for (auto& name : execInputs()) { exec.push_back(name); } |
| 257 | |
| 258 | return ret; |
| 259 | } |
| 260 | }; |
| 261 | |
| 262 | struct StringLiteralNodeType : NodeType { |
nothing calls this directly
no test coverage detected