CodeQL library for JavaScript/TypeScript
codeql/javascript-all 0.8.12 (changelog, source)
Search

Member predicate JSDocNamedTypeExpr::hasNameParts

Holds if this name consists of the unqualified name prefix followed by a (possibly empty) suffix.

For example:

  • foo.bar.Baz has prefix foo and suffix .bar.Baz.
  • Baz has prefix Baz and an empty suffix.
predicate hasNameParts(string prefix, string suffix)