CodeQL library for JavaScript/TypeScript
codeql/javascript-all 1.0.1 (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)