示例#1
0
        S IAstVisitor <T, S> .VisitDefaultValueExpression(DefaultValueExpression defaultValueExpression, T data)
        {
            var handler = DefaultValueExpressionVisited;

            if (handler != null)
            {
                handler(defaultValueExpression, data);
            }
            return(VisitChildren(defaultValueExpression, data));
        }
 public Default(NRefactory.DefaultValueExpression defaultValueExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor)
 {
     _defaultValueExpression = defaultValueExpression;
     InternalType            = _defaultValueExpression.Type.AcceptVisitor(Visitor, ParentScope).Type;
 }
示例#3
0
 void IAstVisitor.VisitDefaultValueExpression(DefaultValueExpression defaultValueExpression)
 {
     Visit(EnterDefaultValueExpression, LeaveDefaultValueExpression, defaultValueExpression);
 }
示例#4
0
 public virtual S VisitDefaultValueExpression(DefaultValueExpression defaultValueExpression, T data)
 {
     return(VisitChildren(defaultValueExpression, data));
 }
 public static Default Default(NRefactory.DefaultValueExpression defaultValueExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
 {
     return(new Default(defaultValueExpression, scope, visitor));
 }
示例#6
0
 public override ConstantExpression VisitDefaultValueExpression(DefaultValueExpression defaultValueExpression, object data)
 {
     return(new ConstantDefaultValue(convertVisitor.ConvertType(defaultValueExpression.Type)));
 }
 public Default(NRefactory.DefaultValueExpression defaultValueExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     _defaultValueExpression = defaultValueExpression;
     InternalType = _defaultValueExpression.Type.AcceptVisitor(Visitor, ParentScope).Type;
 }
 public virtual S VisitDefaultValueExpression(DefaultValueExpression defaultValueExpression, T data)
 {
     throw new NotImplementedException();
 }
示例#9
0
 public override AstExpression VisitDefaultValueExpression(NRefactory.DefaultValueExpression defaultValueExpression, IScope scope)
 {
     return(AstExpression.Default(defaultValueExpression, scope, this));
 }