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 faa9473 commit 5bc0a26Copy full SHA for 5bc0a26
powershell/ql/lib/semmle/code/powershell/ast/internal/Synthesis.qll
@@ -138,3 +138,16 @@ private module ThisSynthesis {
138
}
139
140
141
+
142
+private module SetVariableAssignment {
143
+ private class SetVariableAssignment extends Synthesis {
144
+ override predicate explicitAssignment(Raw::Ast dest, string name, Raw::Ast assignment) {
145
+ exists(Raw::Cmd cmd |
146
+ assignment = cmd and
147
+ cmd.getCommandName().toLowerCase() = "set-variable" and
148
+ cmd.getNamedArgument("name") = dest and
149
+ name = dest.(Raw::StringConstExpr).getValue().getValue()
150
+ )
151
+ }
152
153
+}
0 commit comments