From d2502be9e9cce5a3fed7a1602d95bf61d0b82604 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Fri, 5 Feb 2016 02:25:49 -0800 Subject: [PATCH] Fix issues with AST output --- libdparse | 2 +- src/astprinter.d | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/libdparse b/libdparse index 07e7362..1310007 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit 07e73629cbe8c4253cd0c0af6b9951761b82f608 +Subproject commit 1310007bc92fada7efa7d743e4d0c40e03e54e4b diff --git a/src/astprinter.d b/src/astprinter.d index 6509b8a..41a3fd2 100644 --- a/src/astprinter.d +++ b/src/astprinter.d @@ -858,7 +858,11 @@ class XMLPrinter : ASTVisitor override void visit(const Type2 type2) { if (type2.builtinType != tok!"") + { output.writeln("", str(type2.builtinType), ""); + if (type2.identifierOrTemplateChain !is null) + visit(type2.identifierOrTemplateChain); + } else { output.writeln("");