Skip to main content

Function: dependenciesOf()

function dependenciesOf(ast): Dependencies;

Defined in: packages/core/src/expr/deps.ts:47

Collects the static dependency set of an expression.

  • refs — one pattern per distinct ${…}: dotted names without indices, plus wildcard when any segment is [], and the scope hops (up, root). The engine expands these against the template (hh[*].age, hh:shape, …).
  • meta — dotted metadata keys without the meta. prefix (deviceId, custom.projectCode), i.e. keys as they appear in EvalContext.meta.
  • datasets — dataset names from the first literal argument of pulldata; a computed name cannot be resolved statically and is tracked at first evaluation instead (05 §11).
  • functions — normalised (camelCase) names of every called function, in first-seen order, for RASD_EXPR_UNKNOWN_FUNCTION checking at load.

Parameters

ParameterType
astAst

Returns

Dependencies