We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d04b11 commit 3acbd83Copy full SHA for 3acbd83
powershell/ql/lib/semmle/code/powershell/ast/internal/Synthesis.qll
@@ -904,3 +904,15 @@ private module PipelineAccess {
904
}
905
906
907
+
908
+private module ImplicitAssignmentInForEach {
909
+ private class ForEachAssignment extends Synthesis {
910
+ override predicate implicitAssignment(Raw::Ast dest, string name) {
911
+ exists(Raw::ForEachStmt forEach, Raw::VarAccess va |
912
+ va = forEach.getVarAccess() and
913
+ va = dest and
914
+ va.getUserPath() = name
915
+ )
916
+ }
917
918
+}
0 commit comments