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

Member predicate ExprNameBindingNode::hasQualifiedName

Holds if this refers a value exported by the given module, with the given qualified name. If the qualifiedName is empty, this refers to the module itself.

For example, the type annotations below have the following name bindings:

import * as f from "foo";

var x = f; // hasQualifiedName("f", "")
var x = f.x.y; // hasQualifiedName("f", "x.y")
predicate hasQualifiedName(string moduleName, string qualifiedName)