We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c59a74 commit 50c57c2Copy full SHA for 50c57c2
1 file changed
powershell/ql/lib/semmle/code/powershell/ast/internal/Synthesis.qll
@@ -440,6 +440,11 @@ private module FunctionSynth {
440
n = TFunctionSynth(fundefStmt, _) and
441
result = fundefStmt.getLocation()
442
)
443
+ or
444
+ exists(Raw::TopLevelScriptBlock topLevelScriptBlock |
445
+ n = TTopLevelFunction(topLevelScriptBlock) and
446
+ result = topLevelScriptBlock.getLocation()
447
+ )
448
}
449
450
0 commit comments