GP-4376 Add setPackedOutput to Emit

This commit is contained in:
caheckman 2024-02-29 01:25:08 +00:00
parent d1dc48547e
commit 49af7f2db5
6 changed files with 36 additions and 10 deletions

View file

@ -648,12 +648,12 @@ void PrintLanguage::emitLineComment(int4 indent,const Comment *comm)
comm->setEmitted(true);
}
/// Tell the emitter whether to emit just the raw tokens or if additional mark-up should be provided.
/// \param val is \b true for additional mark-up
void PrintLanguage::setMarkup(bool val)
/// Select packed or unpacked (XML) output, if the emitter supports it.
/// \param val is \b true for packed or \b false for unpacked
void PrintLanguage::setPackedOutput(bool val)
{
((EmitPrettyPrint *)emit)->setMarkup(val);
emit->setPackedOutput(val);
}
/// Emitting formal code structuring can be turned off, causing all control-flow