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

Member predicate NodeModule::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)