Fix issues with AST output

This commit is contained in:
Hackerpilot 2016-02-05 02:25:49 -08:00
parent 5099545546
commit d2502be9e9
2 changed files with 5 additions and 1 deletions

@ -1 +1 @@
Subproject commit 07e73629cbe8c4253cd0c0af6b9951761b82f608
Subproject commit 1310007bc92fada7efa7d743e4d0c40e03e54e4b

View File

@ -858,7 +858,11 @@ class XMLPrinter : ASTVisitor
override void visit(const Type2 type2)
{
if (type2.builtinType != tok!"")
{
output.writeln("<type2>", str(type2.builtinType), "</type2>");
if (type2.identifierOrTemplateChain !is null)
visit(type2.identifierOrTemplateChain);
}
else
{
output.writeln("<type2>");