diff --git a/libdparse b/libdparse index e7a89a9..f03ca29 160000 --- a/libdparse +++ b/libdparse @@ -1 +1 @@ -Subproject commit e7a89a9227af3fe8e3de9f9f44cdb9a17ae3e493 +Subproject commit f03ca29cbe57c903d7a18ba4767087c2bb270849 diff --git a/src/conversion/first.d b/src/conversion/first.d index 4ba031e..faf81a1 100644 --- a/src/conversion/first.d +++ b/src/conversion/first.d @@ -256,16 +256,16 @@ final class FirstPass : ASTVisitor { // Log.trace(__FUNCTION__, " ", typeof(dec).stringof); if (dec.attributeDeclaration !is null - && isProtection(dec.attributeDeclaration.attribute.attribute)) + && isProtection(dec.attributeDeclaration.attribute.attribute.type)) { - protection = dec.attributeDeclaration.attribute.attribute; + protection = dec.attributeDeclaration.attribute.attribute.type; return; } IdType p = protection; foreach (const Attribute attr; dec.attributes) { - if (isProtection(attr.attribute)) - protection = attr.attribute; + if (isProtection(attr.attribute.type)) + protection = attr.attribute.type; } dec.accept(this); protection = p;