visitUnaryOperation method
Implementation
@override
dynamic visitUnaryOperation(UnaryOperation node) {
  final expr = node.expression.accept(this);
  switch (node.operator) {
    case 'not':
    case '!':
      return !isTruthy(expr);
    default:
      throw UnsupportedError('Unsupported operator: ${node.operator}');
  }
}