better namespace parse tree stringification.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
b4c18e0f09
commit
7d0c5cbbed
|
@ -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: {
|
||||
|
|
Loading…
Reference in New Issue