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

Member predicate Module::searchRoot

Gets the root folder relative to which the given import path (which must appear in this module) is resolved.

Each root has an associated priority, and roots with numerically smaller priority are preferred during import resolution.

This predicate is not part of the public API, it is only exposed to allow overriding by subclasses.

predicate searchRoot(PathExpr path, Folder searchRoot, int priority)