This commit is contained in:
Hackerpilot 2016-03-17 03:09:45 -07:00
parent d04d352650
commit b5e9281f1b
2 changed files with 5 additions and 7 deletions

@ -1 +1 @@
Subproject commit a10f5988b2b130ad2cae28c90a668067f98c82a7 Subproject commit 04d176b699ffbcf755eff7276ddf989e6c35aaac

View File

@ -126,10 +126,9 @@ class XMLPrinter : ASTVisitor
override void visit(const AtAttribute atAttribute) override void visit(const AtAttribute atAttribute)
{ {
output.writeln("<atAttribute>"); output.writeln("<atAttribute>");
if (atAttribute.identifier.type == tok!"") if (atAttribute.identifier.type != tok!"")
atAttribute.accept(this);
else
output.writeln("<identifier>", atAttribute.identifier.text, "</identifier>"); output.writeln("<identifier>", atAttribute.identifier.text, "</identifier>");
atAttribute.accept(this);
output.writeln("</atAttribute>"); output.writeln("</atAttribute>");
} }
@ -286,11 +285,10 @@ class XMLPrinter : ASTVisitor
override void visit(const Deprecated deprecated_) override void visit(const Deprecated deprecated_)
{ {
if (deprecated_.stringLiterals.length > 0) if (deprecated_.assignExpression !is null)
{ {
output.writeln("<deprecated>"); output.writeln("<deprecated>");
foreach (literal; deprecated_.stringLiterals) visit(deprecated_.assignExpression);
output.writeln("<stringLiteral>", xmlEscape(literal.text), "</stringLiteral>");
output.writeln("</deprecated>"); output.writeln("</deprecated>");
} }
else else