public override void Visit(CastExpression castExpression) { }
/// <summary> /// Visits the specified cast expression. /// </summary> /// <param name="castExpression">The cast expression.</param> public override void Visit(CastExpression castExpression) { Write("("); VisitDynamic(castExpression.Target); Write(")"); VisitDynamic(castExpression.From); }
public virtual void Visit(CastExpression castExpression) { Write("("); VisitDynamic(castExpression.Target); Write(")"); VisitDynamic(castExpression.From); }
public void Visit(CastExpression castExpression) { Visit((Node)castExpression); var targetType = castExpression.Target.ResolveType(); castExpression.TypeInference = (TypeInference)castExpression.Target.TypeInference.Clone(); if (castExpression.TypeInference.TargetType == null) castExpression.TypeInference.TargetType = targetType; }
public override Node Visit(CastExpression castExpression) { base.Visit(castExpression); var targetType = castExpression.Target.ResolveType(); castExpression.TypeInference = (TypeInference)castExpression.Target.TypeInference.Clone(); if (castExpression.TypeInference.TargetType == null) castExpression.TypeInference.TargetType = targetType; return castExpression; }