mirror of
https://github.com/github/codeql.git
synced 2026-04-29 18:55:14 +02:00
JS: fix join ordering in SimpleParameter.getJSDocTag
This commit is contained in:
@@ -628,8 +628,14 @@ class SimpleParameter extends Parameter, VarDecl {
|
||||
override JSDocParamTag getJSDocTag() {
|
||||
exists(Function fun |
|
||||
this = fun.getAParameter() and
|
||||
result = fun.getDocumentation().getATag() and
|
||||
result.getName() = getName()
|
||||
result = fun.getDocumentation().getATag()
|
||||
) and
|
||||
// Avoid joining on name
|
||||
exists(string tagName, string paramName |
|
||||
tagName = result.getName() and
|
||||
paramName = this.getName() and
|
||||
tagName <= paramName and
|
||||
paramName <= tagName
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user