From 3763c4a47c8e77e88a43cb5fd15264d47ae6d3e3 Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Mon, 29 Dec 2014 01:12:16 -0800 Subject: [PATCH] Update libdparse. A parser change seems to result in a 13% reduction in server startup time --- libdparse | 2 +- src/conversion/first.d | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) 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;