JSSpecCompiler: Do not frame nodes with < and > when dumping AST

Let's not pretend we are outputting some invalid HTML.
This commit is contained in:
Dan Klishch 2023-09-13 01:33:32 -04:00 committed by Jelle Raaijmakers
parent f9d485191d
commit 4578004ad6
Notes: sideshowbarker 2024-07-17 00:25:35 +09:00

View file

@ -23,10 +23,9 @@ void Node::format_tree(StringBuilder& builder)
template<typename... Parameters>
void Node::dump_node(StringBuilder& builder, AK::CheckedFormatString<Parameters...>&& fmtstr, Parameters const&... parameters)
{
builder.append("<"sv);
AK::VariadicFormatParams<AK::AllowDebugOnlyFormatters::No, Parameters...> variadic_format_params { parameters... };
MUST(AK::vformat(builder, fmtstr.view(), variadic_format_params));
builder.append(">\n"sv);
builder.append("\n"sv);
}
void ErrorNode::dump_tree(StringBuilder& builder)