fail method

Never fail(
  1. String message, {
  2. ExpressionToken? where,
})

Throws an ExpressionSyntaxException at where, current by default.

Implementation

Never fail(String message, {ExpressionToken? where}) {
  final token = where ?? current;
  throw ExpressionSyntaxException(message, token.line, token.column);
}