We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae83d56 commit ebc167cCopy full SHA for ebc167c
powershell/ql/lib/semmle/code/powershell/dataflow/internal/DataFlowPrivate.qll
@@ -533,6 +533,12 @@ private module ParameterNodes {
533
}
534
535
536
+ bindingset[p]
537
+ pragma[inline_late]
538
+ private predicate namedSetHasParameter(NamedSet ns, Parameter p) {
539
+ ns.getALowerCaseName() = p.getLowerCaseName()
540
+ }
541
+
542
/**
543
* The value of a normal parameter at function entry, viewed as a node in a data
544
* flow graph.
@@ -572,7 +578,7 @@ private module ParameterNodes {
572
578
count(int k, Parameter p |
573
579
k < i and
574
580
p = getNormalParameter(f, k) and
575
- p.getLowerCaseName() = ns.getAName()
581
+ namedSetHasParameter(ns, p)
576
582
)
577
583
584
0 commit comments