We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c6d258 commit 3e28011Copy full SHA for 3e28011
1 file changed
javascript/ql/lib/semmle/javascript/JSDoc.qll
@@ -372,6 +372,7 @@ class JSDocNamedTypeExpr extends JSDocTypeExpr {
372
* - `Baz` has prefix `Baz` and an empty suffix.
373
*/
374
predicate hasNameParts(string prefix, string suffix) {
375
+ not this = any(JSDocQualifiedTypeAccess a).getBase() and // restrict size of predicate
376
exists(string regex, string name | regex = "([^.]+)(.*)" |
377
name = this.getRawName() and
378
prefix = name.regexpCapture(regex, 1) and
0 commit comments