Fix sefgault in undocumented declaration check^C

This commit is contained in:
Hackerpilot 2015-06-11 15:50:15 -07:00
parent ba70f0e9dd
commit ae7df76154
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ class UndocumentedDeclarationCheck : BaseAnalyzer
override void visit(const ConditionalDeclaration cond)
{
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);
else if (cond.falseDeclaration !is null)
visit(cond.falseDeclaration);