We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db3060d commit 3e7bac4Copy full SHA for 3e7bac4
javascript/ql/src/semmle/javascript/Variables.qll
@@ -628,8 +628,14 @@ class SimpleParameter extends Parameter, VarDecl {
628
override JSDocParamTag getJSDocTag() {
629
exists(Function fun |
630
this = fun.getAParameter() and
631
- result = fun.getDocumentation().getATag() and
632
- result.getName() = getName()
+ result = fun.getDocumentation().getATag()
+ ) and
633
+ // Avoid joining on name
634
+ exists(string tagName, string paramName |
635
+ tagName = result.getName() and
636
+ paramName = this.getName() and
637
+ tagName <= paramName and
638
+ paramName <= tagName
639
)
640
}
641
0 commit comments