pivot method
Object?
pivot(
- DataInstance? model,
- EvaluationContext context,
- List<
Object> pivots, - Object sentinel,
override
A comparison of the node with a number yields a CmpPivot.
Implementation
@override
Object? pivot(
DataInstance? model,
EvaluationContext context,
List<Object> pivots,
Object sentinel,
) {
final x = a.pivot(model, context, pivots, sentinel);
var y = b.pivot(model, context, pivots, sentinel);
if (y is XPathNodeset) y = y.unpack();
if (_handled(x, y, sentinel, pivots) || _handled(y, x, sentinel, pivots)) {
return null;
}
return eval(model, context);
}