JSON output: fix several bugs related to switch/case fallthrough

fix-tolerance-parameters
Sébastien Villemot 2022-05-17 23:16:19 +02:00
parent ae97c4eb29
commit 701db61e09
No known key found for this signature in database
GPG Key ID: 2CECE9350ECEBE4A
2 changed files with 3 additions and 0 deletions

View File

@ -1736,6 +1736,7 @@ EstimatedParamsBoundsStatement::writeJsonOutput(ostream &output) const
{
case 1:
output << R"("var": ")" << it->name << R"(")";
break;
case 2:
output << R"("param": ")" << it->name << R"(")";
break;
@ -1833,6 +1834,7 @@ EstimatedParamsRemoveStatement::writeJsonOutput(ostream &output) const
{
case 1:
output << R"("var": ")" << it->name << R"(")";
break;
case 2:
output << R"("param": ")" << it->name << R"(")";
break;

View File

@ -2471,6 +2471,7 @@ UnaryOpNode::writeJsonAST(ostream &output) const
break;
case UnaryOpcode::steadyState:
output << "steady_state";
break;
case UnaryOpcode::steadyStateParamDeriv:
output << "steady_state_param_deriv";
break;