eval method

  1. @override
Object eval(
  1. DataInstance? model,
  2. EvaluationContext context
)
override

JavaRosa returns null for an undefined variable, which later fails in a type conversion; DartRosa reports it directly (see DEVIATIONS.md).

Implementation

@override
Object eval(DataInstance? model, EvaluationContext context) =>
    context.variable(id.toString()) ??
    (throw XPathUnhandledException('variable \$$id'));