Skip to content

Commit 7373a50

Browse files
committed
Ruby: Populate ArgumentPosition based on keyword arguments
1 parent 5e350a0 commit 7373a50

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowDispatch.qll

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,7 +241,11 @@ private module Cached {
241241
or
242242
FlowSummaryImplSpecific::ParsePositions::isParsedParameterPosition(_, pos)
243243
} or
244-
TKeywordArgumentPosition(string name) { name = any(KeywordParameter kp).getName() }
244+
TKeywordArgumentPosition(string name) {
245+
name = any(KeywordParameter kp).getName()
246+
or
247+
exists(any(Call c).getKeywordArgument(name))
248+
}
245249

246250
cached
247251
newtype TParameterPosition =

0 commit comments

Comments
 (0)