Fix part of #305
This commit is contained in:
parent
d2502be9e9
commit
c252b3420e
|
@ -20,6 +20,13 @@ class AutoRefAssignmentCheck : BaseAnalyzer
|
||||||
super(fileName, null);
|
super(fileName, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
override void visit(const Module m)
|
||||||
|
{
|
||||||
|
pushScope();
|
||||||
|
m.accept(this);
|
||||||
|
popScope();
|
||||||
|
}
|
||||||
|
|
||||||
override void visit(const FunctionDeclaration func)
|
override void visit(const FunctionDeclaration func)
|
||||||
{
|
{
|
||||||
if (func.parameters is null || func.parameters.parameters.length == 0)
|
if (func.parameters is null || func.parameters.parameters.length == 0)
|
||||||
|
|
Loading…
Reference in New Issue