We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
$default
1 parent 243c311 commit ce5509aCopy full SHA for ce5509a
1 file changed
java/ql/lib/semmle/code/java/dataflow/internal/FlowSummaryImplSpecific.qll
@@ -120,8 +120,11 @@ private predicate correspondingKotlinParameterDefaultsArgSpec(
120
exists(int oldArgParsed |
121
oldArgParsed = AccessPathSyntax::AccessPath::parseInt(oldArgNumber.splitAt(",").trim())
122
|
123
- if ktExtensionFunctions(originalCallable, _, _) and oldArgParsed = 0
124
- then defaultsArgSpec = "Argument[0]"
+ if
+ ktExtensionFunctions(originalCallable, _, _) and
125
+ ktExtensionFunctions(defaultsCallable, _, _) and
126
+ oldArgParsed = 0
127
+ then defaultsArgSpec = "Argument[" + paramOffset + "]" // 1 if dispatch receiver is present, 0 otherwise.
128
else defaultsArgSpec = "Argument[" + (oldArgParsed + paramOffset) + "]" + rest
129
)
130
0 commit comments