better namespace parse tree stringification.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Deukhoofd 2021-01-05 19:26:11 +01:00
parent b4c18e0f09
commit 7d0c5cbbed
Signed by: Deukhoofd
GPG Key ID: F63E044490819F6F
1 changed files with 3 additions and 2 deletions

View File

@ -84,9 +84,10 @@ namespace MalachScript::Parser {
break;
}
case ParsedStatementKind::Namespace: {
const auto* ns = static_cast<const ParsedNamespaceStatement*>(statement);
stream << " " << ns->GetIdentifier();
stream << std::endl;
auto& script = static_cast<const ParsedNamespaceStatement*>(statement)->GetScript();
Stringify(script.get(), stream, prefix + (isLast ? " " : ""), true);
Stringify(ns->GetScript().get(), stream, prefix + (isLast ? " " : ""), true);
break;
}
case ParsedStatementKind::Type: {