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)
|
||||
{
|
||||
if (condition.falseDeclaration)
|
||||
if (condition.falseDeclarations.length > 0)
|
||||
++conditionalDepth;
|
||||
condition.accept(this);
|
||||
if (condition.falseDeclaration)
|
||||
if (condition.falseDeclarations.length > 0)
|
||||
--conditionalDepth;
|
||||
}
|
||||
|
||||
|
|
|
@ -114,8 +114,9 @@ class UndocumentedDeclarationCheck : BaseAnalyzer
|
|||
const VersionCondition ver = cond.compileCondition.versionCondition;
|
||||
if (ver is null || (ver.token != tok!"unittest" && ver.token.text != "none"))
|
||||
cond.accept(this);
|
||||
else if (cond.falseDeclaration !is null)
|
||||
visit(cond.falseDeclaration);
|
||||
else if (cond.falseDeclarations.length > 0)
|
||||
foreach (f; cond.falseDeclarations)
|
||||
visit(f);
|
||||
}
|
||||
|
||||
override void visit(const FunctionBody fb) {}
|
||||
|
|
|
@ -208,11 +208,12 @@ class XMLPrinter : ASTVisitor
|
|||
foreach (dec; conditionalDeclaration.trueDeclarations)
|
||||
visit(dec);
|
||||
output.writeln("</trueDeclarations>");
|
||||
if (conditionalDeclaration.falseDeclaration !is null)
|
||||
if (conditionalDeclaration.falseDeclarations.length > 0)
|
||||
{
|
||||
output.writeln("<falseDeclaration>");
|
||||
visit(conditionalDeclaration.falseDeclaration);
|
||||
output.writeln("</falseDeclaration>");
|
||||
output.writeln("<falseDeclarations>");
|
||||
foreach (dec; conditionalDeclaration.falseDeclarations)
|
||||
visit(dec);
|
||||
output.writeln("</falseDeclarations>");
|
||||
}
|
||||
output.writeln("</conditionalDeclaration>");
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue