fix #723 - segfault when running D-Scanner master against dparse repo with -S
This commit is contained in:
parent
f585c383f1
commit
8d3dcc55bc
|
@ -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