Update libdparse

This commit is contained in:
Hackerpilot 2015-04-13 16:37:24 -07:00
parent c5392e7adb
commit 25b856f607
2 changed files with 27 additions and 22 deletions

@ -1 +1 @@
Subproject commit 4c846b616bb38c74c69eb63ed39aeb7ac4511f9e Subproject commit 16b75e718643bd0ca75ed2bcea6ce2a3dd6ebf37

View File

@ -271,8 +271,13 @@ class XMLPrinter : ASTVisitor
override void visit(const Deprecated deprecated_) override void visit(const Deprecated deprecated_)
{ {
if (deprecated_.stringLiteral.type != tok!"") if (deprecated_.stringLiterals.length > 0)
output.writeln("<deprecated>", deprecated_.stringLiteral.text, "</deprecated>"); {
output.writeln("<deprecated>");
foreach (literal; deprecated_.stringLiterals)
output.writeln("<stringLiteral>", xmlEscape(literal.text), "</stringLiteral>");
output.writeln("</deprecated>");
}
else else
output.writeln("<deprecated/>"); output.writeln("<deprecated/>");
} }