pivot method
Object?
pivot(
- DataInstance? model,
- EvaluationContext context,
- List<
Object> pivots, - Object sentinel,
override
Pivots this expression around sentinel (the validated node's
reference), adding CmpPivots to pivots.
Returns sentinel when the value is the node, null when it
depends on it in a supported way, otherwise the evaluated value. Throws
UnpivotableExpressionException when the dependency can't be
expressed as pivots.
Port of XPathExpression.pivot; see pivotsOf.
Implementation
@override
Object? pivot(
DataInstance? model,
EvaluationContext context,
List<Object> pivots,
Object sentinel,
) => throw const UnpivotableExpressionException();