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

Member predicate StmtContainer::getStart

Gets the (unique) CFG node at which execution of this toplevel or function begins.

Unlike the entry node, which is a synthetic construct, the start node corresponds to an actual program element, such as the first statement of a toplevel or the first parameter of a function.

Empty toplevels do not have a start node.

ConcreteControlFlowNode getStart()