Merge pull request #724 from BBasile/issue-723
fix #723 - segfault when running D-Scanner master against dparse repo with -S merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
This commit is contained in:
commit
c57a944506
|
@ -308,9 +308,11 @@ final class UnusedVariableCheck : BaseAnalyzer
|
|||
override void visit(const WithStatement withStatetement)
|
||||
{
|
||||
interestDepth++;
|
||||
withStatetement.expression.accept(this);
|
||||
if (withStatetement.expression)
|
||||
withStatetement.expression.accept(this);
|
||||
interestDepth--;
|
||||
withStatetement.declarationOrStatement.accept(this);
|
||||
if (withStatetement.declarationOrStatement)
|
||||
withStatetement.declarationOrStatement.accept(this);
|
||||
}
|
||||
|
||||
override void visit(const Parameter parameter)
|
||||
|
|
Loading…
Reference in New Issue