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

Member predicate CanonicalName::toString

Gets the fully qualified name, followed by the name of its enclosing module or file.

For example, the class Server from the http module has toString value: Server in module 'http'.

In the file foo.ts below, the class C has toString value C in foo.ts:2 because it is defined in a lexical scope starting on line 2:

namespace X {
  function doWork() {
    class C {}
  }
}
string toString()