Dependency updates
This commit is contained in:
parent
26500bf876
commit
96ec168f77
2
dsymbol
2
dsymbol
|
@ -1 +1 @@
|
||||||
Subproject commit 58392233a0e8cef78910e75f80b8214af6229e87
|
Subproject commit 26649393504a8617760f9c7fd99b31f0362f095e
|
|
@ -1 +1 @@
|
||||||
Subproject commit e45e75e486d0237ec8162b789d9033a802514f74
|
Subproject commit 668db0cd0121684c47af1ee945a271fcddcbd421
|
|
@ -56,10 +56,10 @@ class LabelVarNameCheck : BaseAnalyzer
|
||||||
|
|
||||||
override void visit(const ConditionalDeclaration condition)
|
override void visit(const ConditionalDeclaration condition)
|
||||||
{
|
{
|
||||||
if (condition.falseDeclaration)
|
if (condition.falseDeclarations.length > 0)
|
||||||
++conditionalDepth;
|
++conditionalDepth;
|
||||||
condition.accept(this);
|
condition.accept(this);
|
||||||
if (condition.falseDeclaration)
|
if (condition.falseDeclarations.length > 0)
|
||||||
--conditionalDepth;
|
--conditionalDepth;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -114,8 +114,9 @@ class UndocumentedDeclarationCheck : BaseAnalyzer
|
||||||
const VersionCondition ver = cond.compileCondition.versionCondition;
|
const VersionCondition ver = cond.compileCondition.versionCondition;
|
||||||
if (ver is null || (ver.token != tok!"unittest" && ver.token.text != "none"))
|
if (ver is null || (ver.token != tok!"unittest" && ver.token.text != "none"))
|
||||||
cond.accept(this);
|
cond.accept(this);
|
||||||
else if (cond.falseDeclaration !is null)
|
else if (cond.falseDeclarations.length > 0)
|
||||||
visit(cond.falseDeclaration);
|
foreach (f; cond.falseDeclarations)
|
||||||
|
visit(f);
|
||||||
}
|
}
|
||||||
|
|
||||||
override void visit(const FunctionBody fb) {}
|
override void visit(const FunctionBody fb) {}
|
||||||
|
|
|
@ -208,11 +208,12 @@ class XMLPrinter : ASTVisitor
|
||||||
foreach (dec; conditionalDeclaration.trueDeclarations)
|
foreach (dec; conditionalDeclaration.trueDeclarations)
|
||||||
visit(dec);
|
visit(dec);
|
||||||
output.writeln("</trueDeclarations>");
|
output.writeln("</trueDeclarations>");
|
||||||
if (conditionalDeclaration.falseDeclaration !is null)
|
if (conditionalDeclaration.falseDeclarations.length > 0)
|
||||||
{
|
{
|
||||||
output.writeln("<falseDeclaration>");
|
output.writeln("<falseDeclarations>");
|
||||||
visit(conditionalDeclaration.falseDeclaration);
|
foreach (dec; conditionalDeclaration.falseDeclarations)
|
||||||
output.writeln("</falseDeclaration>");
|
visit(dec);
|
||||||
|
output.writeln("</falseDeclarations>");
|
||||||
}
|
}
|
||||||
output.writeln("</conditionalDeclaration>");
|
output.writeln("</conditionalDeclaration>");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue