Skip to content

Commit 1342d9f

Browse files
author
Kapil Borle
committed
Fix module name extraction from dynamic keyword
1 parent edba7cc commit 1342d9f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Engine/Generic/ModuleDependencyHandler.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -445,10 +445,10 @@ public static IEnumerable<string> GetModuleNameFromErrorExtent(ParseError error,
445445
}
446446

447447
// find a parameter named modulename
448-
int k;
448+
int k;
449449
for (k = 1; k < dynamicKywdAst.CommandElements.Count; k++)
450450
{
451-
var paramAst = dynamicKywdAst.CommandElements[1] as CommandParameterAst;
451+
var paramAst = dynamicKywdAst.CommandElements[k] as CommandParameterAst;
452452
// TODO match the initial letters only
453453
if (paramAst == null || !paramAst.ParameterName.Equals("ModuleName", StringComparison.OrdinalIgnoreCase))
454454
{

0 commit comments

Comments
 (0)