mirror of
https://github.com/dlang-community/D-Scanner.git
synced 2025-04-26 13:20:07 +03:00
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
1 changed files with 4 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue