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:
parent
fe4122bbae
commit
646aaa111b
4 changed files with 84 additions and 19 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue