This commit is contained in:
WebFreak001 2018-09-13 16:42:21 +02:00
parent c611a872c7
commit aeebbf85ae
1 changed files with 2 additions and 1 deletions

View File

@ -598,7 +598,8 @@ class XMLPrinter : ASTVisitor
override void visit(const LabeledStatement labeledStatement)
{
output.writeln("<labeledStatement label=\"", labeledStatement.identifier.text, "\">");
visit(labeledStatement.declarationOrStatement);
if (labeledStatement.declarationOrStatement !is null)
visit(labeledStatement.declarationOrStatement);
output.writeln("</labeledStatement>");
}