Collects all variables referenced by expressions across all premises, indexed both by variable ID and by symbol.
An object with variableIds, byId, and bySymbol indexes.
Returns all expressions across all premises, sorted by ID.
An array of expression entities.
Returns an expression by ID from any premise, or undefined if not
found.
The expression ID to look up.
The expression entity, or undefined.
Returns the premise ID that contains the given expression, or
undefined.
The expression ID to look up.
The owning premise ID, or undefined.
Returns all expressions that reference the given variable ID, across all premises.
The variable ID to search for.
An array of referencing expression entities.
Returns true if an expression with the given ID exists in any
premise.
The expression ID to check.
Whether the expression exists.
Returns the root expression from each premise that has one.
An array of root expression entities.
Cross-premise expression lookups and analysis.