Skip to content

Commit 3ba3b11

Browse files
committed
PS: Prevent magic on 'getParent'.
1 parent 56977c7 commit 3ba3b11

File tree

1 file changed

+1
-0
lines changed
  • powershell/ql/lib/semmle/code/powershell/ast/internal

1 file changed

+1
-0
lines changed

powershell/ql/lib/semmle/code/powershell/ast/internal/Ast.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ private import AstImport
33
class Ast extends TAst {
44
string toString() { none() }
55

6+
pragma[nomagic]
67
final Ast getParent() { result.getChild(_) = this }
78

89
Location getLocation() {

0 commit comments

Comments
 (0)