public override void VisitAfter(CastExpr expr) { if (IsPlaceHolderExpr(expr.Operand)) { expr.Operand = Place((PlaceHolderExpr)expr.Operand); } }
public override void ExitCastExpr(MiniSqlParserParser.CastExprContext context) { var comments = this.GetComments(context); var typeNameComment = this.GetComments(context.type_name()).Last; comments.Insert(3, typeNameComment); var typeName = context.type_name().GetText(); var operand = (Expr)_stack.Pop(); var node = new CastExpr(operand, typeName, false, comments); _stack.Push(node); }
public override void VisitAfter(CastExpr expr) { var operand = (Expr)_stack.Pop(); if (object.ReferenceEquals(expr.Operand, operand)) { _stack.Push(expr); return; } var node = new CastExpr(operand, expr.TypeName, expr.IsPostgreSqlHistoricalCast, expr.Comments.Clone()); _stack.Push(node); }
virtual public void VisitAfter(CastExpr expr) { }
virtual public void VisitBefore(CastExpr expr) { }
public void VisitAfter(CastExpr expr) { _visitor.VisitAfter(expr); }
public void VisitBefore(CastExpr expr) { _visitor.VisitBefore(expr); }