mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 06:37:52 +00:00
JSSpecCompiler: Allow storing error text in ErrorNode
This will be the main way to communicate errors from compilation passes.
This commit is contained in:
committed by
Andrew Kaster
parent
72794e7843
commit
4eede5282c
@@ -31,7 +31,7 @@ void Node::dump_node(StringBuilder& builder, AK::CheckedFormatString<Parameters.
|
||||
|
||||
void ErrorNode::dump_tree(StringBuilder& builder)
|
||||
{
|
||||
dump_node(builder, "Error");
|
||||
dump_node(builder, "Error \"{}\"", m_error);
|
||||
}
|
||||
|
||||
void MathematicalConstant::dump_tree(StringBuilder& builder)
|
||||
|
||||
Reference in New Issue
Block a user