pub fn expr_references_instance_data(expr: &Expr) -> boolExpand description
True when the AST reads instance data: a $field, an @context, or a repeat navigation call
(locale §3.3.1 rule 3a).
The rule keeps a null result literal only for an expression that reads none — an author’s typo or a
broken operator sequence — so that a missing $field still renders as empty text. Navigation across
rows belongs on the reading side: {{prev().total}} is null on the first row for a good reason, and a
respondent should read an empty space there, not the template.