1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 23:47:45 +00:00

LibCpp: Support parsing templatized function calls

This commit is contained in:
Itamar 2021-03-31 18:19:58 +03:00 committed by Andreas Kling
parent fe4122bbae
commit 646aaa111b
4 changed files with 84 additions and 19 deletions

View file

@ -483,4 +483,25 @@ String Name::full_name() const
return String::formatted("{}{}", builder.to_string(), m_name.is_null() ? "" : m_name->m_name);
}
void TemplatizedFunctionCall::dump(size_t indent) const
{
ASTNode::dump(indent);
print_indent(indent);
outln("{}", m_name->full_name());
print_indent(indent + 1);
outln("<");
for (auto& arg : m_template_arguments) {
arg.dump(indent + 1);
}
print_indent(indent + 1);
outln(">");
for (const auto& arg : m_arguments) {
arg.dump(indent + 1);
}
}
}