Update dependencies

This commit is contained in:
Hackerpilot 2016-01-14 00:25:03 -08:00
parent ec4a14e43e
commit 47f454711d
4 changed files with 1093 additions and 1088 deletions

@ -1 +1 @@
Subproject commit 26649393504a8617760f9c7fd99b31f0362f095e
Subproject commit 84ed30c0786c8f1f1954c79152820b79aebece13

@ -1 +1 @@
Subproject commit d928584e9e05bb003d1e378aa921899010b0a670
Subproject commit 4d876562b4862a98bf1b6b6bf4fd07af96506a54

View File

@ -248,9 +248,9 @@ private:
if (storageClass.token == tok!"enum")
return true;
}
foreach (attr; dec.attributes)
foreach (sc; dec.storageClasses)
{
if (attr.attribute.type == tok!"immutable" || attr.attribute.type == tok!"const")
if (sc.token == tok!"immutable" || sc.token == tok!"const")
return true;
}
if (dec.type !is null)

View File

@ -11,8 +11,8 @@ import std.string;
import std.array;
/**
* AST visitor that outputs an XML representation of the AST to its file.
*/
* AST visitor that outputs an XML representation of the AST to its file.
*/
class XMLPrinter : ASTVisitor
{
override void visit(const AddExpression addExpression)
@ -145,6 +145,11 @@ class XMLPrinter : ASTVisitor
override void visit(const AutoDeclaration autoDec)
{
output.writeln("<autoDeclaration>");
output.writeln("<storageClasses>");
foreach(sc; autoDec.storageClasses)
visit(sc);
output.writeln("</storageClasses>");
for (size_t i = 0; i < autoDec.identifiers.length; i++)
{
output.writeln("<item>");