binpac: Don't output comment for &let/&withinput if no such fields exist

This commit is contained in:
Tim Wojtulewicz 2023-03-24 11:55:46 -07:00
parent ba7a7c2201
commit 4d0a29a725

View file

@ -703,6 +703,8 @@ void Type::GenParseCode3(Output* out_cc, Env* env, const DataPtr& data, int flag
out_cc->println("{");
}
if ( ! fields_->empty() )
{
out_cc->println("// Evaluate 'let' and 'withinput' fields");
foreach (i, FieldList, fields_)
{
@ -718,6 +720,7 @@ void Type::GenParseCode3(Output* out_cc, Env* env, const DataPtr& data, int flag
af->GenParseCode(out_cc, env);
}
}
}
if ( value_var() && anonymous_value_var() )
{