We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1c0dfc2 + 79d5cd7 commit a2ef243Copy full SHA for a2ef243
1 file changed
Rules/AvoidUnitializedVariable.cs
@@ -46,7 +46,7 @@ public IEnumerable<DiagnosticRecord> AnalyzeScript(Ast ast, string fileName)
46
}
47
48
49
- IEnumerable<Ast> funcAsts = ast.FindAll(item => item is FunctionDefinitionAst, true);
+ IEnumerable<Ast> funcAsts = ast.FindAll(item => item is FunctionDefinitionAst || item is FunctionMemberAst, true);
50
51
foreach (var funcAst in funcAsts)
52
{
0 commit comments