better namespace parse tree stringification.
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
b4c18e0f09
commit
7d0c5cbbed
@ -84,9 +84,10 @@ namespace MalachScript::Parser {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ParsedStatementKind::Namespace: {
|
case ParsedStatementKind::Namespace: {
|
||||||
|
const auto* ns = static_cast<const ParsedNamespaceStatement*>(statement);
|
||||||
|
stream << " " << ns->GetIdentifier();
|
||||||
stream << std::endl;
|
stream << std::endl;
|
||||||
auto& script = static_cast<const ParsedNamespaceStatement*>(statement)->GetScript();
|
Stringify(ns->GetScript().get(), stream, prefix + (isLast ? " " : "│ "), true);
|
||||||
Stringify(script.get(), stream, prefix + (isLast ? " " : "│ "), true);
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ParsedStatementKind::Type: {
|
case ParsedStatementKind::Type: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user