public override void VisitTypeOfExpression(TypeOfExpression typeOfExpression) { ForceSpacesBefore(typeOfExpression.LParToken, policy.SpaceBeforeTypeOfParentheses); ForceSpacesAfter(typeOfExpression.LParToken, policy.SpacesWithinTypeOfParentheses); ForceSpacesBefore(typeOfExpression.RParToken, policy.SpacesWithinTypeOfParentheses); base.VisitTypeOfExpression(typeOfExpression); }
protected internal TypeOf(NRefactory.TypeOfExpression typeOfExpression, IScope scope, INRefcatoryExpressionVisitor visitor) : base(scope, visitor) { _typeOfExpression = typeOfExpression; _typeReference = _typeOfExpression.Type.AcceptVisitor(visitor, ParentScope); InternalType = _type; }
S IAstVisitor <T, S> .VisitTypeOfExpression(TypeOfExpression typeOfExpression, T data) { var handler = TypeOfExpressionVisited; if (handler != null) { handler(typeOfExpression, data); } return(VisitChildren(typeOfExpression, data)); }
public override ConstantExpression VisitTypeOfExpression(TypeOfExpression typeOfExpression, object data) { if (isAttributeArgument) { return(new PrimitiveConstantExpression(systemType, convertVisitor.ConvertType(typeOfExpression.Type))); } else { return(null); } }
void IAstVisitor.VisitTypeOfExpression(TypeOfExpression typeOfExpression) { Visit(EnterTypeOfExpression, LeaveTypeOfExpression, typeOfExpression); }
public virtual S VisitTypeOfExpression(TypeOfExpression typeOfExpression, T data) { return(VisitChildren(typeOfExpression, data)); }
public static TypeOf TypeOf(NRefactory.TypeOfExpression typeOfExpression, IScope scope, INRefcatoryExpressionVisitor visitor) { return(new TypeOf(typeOfExpression, scope, visitor)); }
public virtual S VisitTypeOfExpression(TypeOfExpression typeOfExpression, T data) { throw new NotImplementedException(); }
public override AstExpression VisitTypeOfExpression(NRefactory.TypeOfExpression typeOfExpression, IScope scope) { return(AstExpression.TypeOf(typeOfExpression, scope, this)); }