Fix sefgault in undocumented declaration check^C
This commit is contained in:
parent
ba70f0e9dd
commit
ae7df76154
|
@ -111,7 +111,7 @@ class UndocumentedDeclarationCheck : BaseAnalyzer
|
||||||
override void visit(const ConditionalDeclaration cond)
|
override void visit(const ConditionalDeclaration cond)
|
||||||
{
|
{
|
||||||
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.falseDeclaration !is null)
|
||||||
visit(cond.falseDeclaration);
|
visit(cond.falseDeclaration);
|
||||||
|
|
Loading…
Reference in New Issue