Update libdparse. A parser change seems to result in a 13% reduction in server startup time

This commit is contained in:
Hackerpilot 2014-12-29 01:12:16 -08:00
parent 61f1f92bdb
commit 3763c4a47c
2 changed files with 5 additions and 5 deletions

@ -1 +1 @@
Subproject commit e7a89a9227af3fe8e3de9f9f44cdb9a17ae3e493 Subproject commit f03ca29cbe57c903d7a18ba4767087c2bb270849

View File

@ -256,16 +256,16 @@ final class FirstPass : ASTVisitor
{ {
// Log.trace(__FUNCTION__, " ", typeof(dec).stringof); // Log.trace(__FUNCTION__, " ", typeof(dec).stringof);
if (dec.attributeDeclaration !is null 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; return;
} }
IdType p = protection; IdType p = protection;
foreach (const Attribute attr; dec.attributes) foreach (const Attribute attr; dec.attributes)
{ {
if (isProtection(attr.attribute)) if (isProtection(attr.attribute.type))
protection = attr.attribute; protection = attr.attribute.type;
} }
dec.accept(this); dec.accept(this);
protection = p; protection = p;