예제 #1
0
 public override void VisitTypeOfExpression(TypeOfExpression typeOfExpression)
 {
     ForceSpacesBefore(typeOfExpression.LParToken, policy.SpaceBeforeTypeOfParentheses);
     ForceSpacesAfter(typeOfExpression.LParToken, policy.SpacesWithinTypeOfParentheses);
     ForceSpacesBefore(typeOfExpression.RParToken, policy.SpacesWithinTypeOfParentheses);
     base.VisitTypeOfExpression(typeOfExpression);
 }
예제 #2
0
 protected internal TypeOf(NRefactory.TypeOfExpression typeOfExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor)
 {
     _typeOfExpression = typeOfExpression;
     _typeReference    = _typeOfExpression.Type.AcceptVisitor(visitor, ParentScope);
     InternalType      = _type;
 }
예제 #3
0
        S IAstVisitor <T, S> .VisitTypeOfExpression(TypeOfExpression typeOfExpression, T data)
        {
            var handler = TypeOfExpressionVisited;

            if (handler != null)
            {
                handler(typeOfExpression, data);
            }
            return(VisitChildren(typeOfExpression, data));
        }
예제 #4
0
 public override ConstantExpression VisitTypeOfExpression(TypeOfExpression typeOfExpression, object data)
 {
     if (isAttributeArgument)
     {
         return(new PrimitiveConstantExpression(systemType, convertVisitor.ConvertType(typeOfExpression.Type)));
     }
     else
     {
         return(null);
     }
 }
예제 #5
0
 void IAstVisitor.VisitTypeOfExpression(TypeOfExpression typeOfExpression)
 {
     Visit(EnterTypeOfExpression, LeaveTypeOfExpression, typeOfExpression);
 }
예제 #6
0
 public virtual S VisitTypeOfExpression(TypeOfExpression typeOfExpression, T data)
 {
     return(VisitChildren(typeOfExpression, data));
 }
예제 #7
0
 public static TypeOf TypeOf(NRefactory.TypeOfExpression typeOfExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
 {
     return(new TypeOf(typeOfExpression, scope, visitor));
 }
예제 #8
0
 protected internal TypeOf(NRefactory.TypeOfExpression typeOfExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     _typeOfExpression = typeOfExpression;
     _typeReference = _typeOfExpression.Type.AcceptVisitor(visitor, ParentScope);
     InternalType = _type;
 }
 public virtual S VisitTypeOfExpression(TypeOfExpression typeOfExpression, T data)
 {
     throw new NotImplementedException();
 }
예제 #10
0
 public override AstExpression VisitTypeOfExpression(NRefactory.TypeOfExpression typeOfExpression, IScope scope)
 {
     return(AstExpression.TypeOf(typeOfExpression, scope, this));
 }