Skip to content

Commit e99404a

Browse files
committed
PS: Fix missing parent relation for block statements.
1 parent f63c2b0 commit e99404a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

powershell/extractor/Semmle.Extraction.PowerShell/Entities/StatementBlockEntity.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ public override void Populate(TextWriter trapFile)
3232
EntityConstructor.ConstructAppropriateEntity(PowerShellContext, Fragment.Traps[index]));
3333
}
3434
}
35+
36+
trapFile.parent(this, EntityConstructor.ConstructAppropriateEntity(PowerShellContext, Fragment.Parent));
3537
}
3638

3739
public override bool NeedsPopulation => true;

0 commit comments

Comments
 (0)