addLikeExpression method

void addLikeExpression(
  1. LikeExpression expr
)

Implementation

void addLikeExpression(LikeExpression expr) {
  writeExpression(expr, () {
    expr.left.compileWith(this);
    statement.buffer.write(' LIKE ');
    expr.right.compileWith(this);

    if (expr.escape case final escape?) {
      statement.buffer.write(' ESCAPE ');
      escape.compileWith(this);
    }
  });
}