Skip to content

Commit 9f75737

Browse files
author
Kapil Borle
committed
Search nested script blocks for external rules
1 parent 650b5c2 commit 9f75737

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Engine/ScriptAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ internal IEnumerable<DiagnosticRecord> GetExternalRecord(Ast ast, Token[] token,
11641164
{
11651165
// Find all AstTypes that appeared in rule groups.
11661166
IEnumerable<Ast> childAsts = ast.FindAll(new Func<Ast, bool>((testAst) =>
1167-
(astRuleGroup.Key.IndexOf(testAst.GetType().FullName, StringComparison.OrdinalIgnoreCase) != -1)), false);
1167+
(astRuleGroup.Key.IndexOf(testAst.GetType().FullName, StringComparison.OrdinalIgnoreCase) != -1)), true);
11681168

11691169
foreach (Ast childAst in childAsts)
11701170
{

0 commit comments

Comments
 (0)