protected internal NamedArgument(NRefactory.NamedArgumentExpression namedArgumentExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor)
 {
     _namedArgumentExpression = namedArgumentExpression;
     Argument     = namedArgumentExpression.Expression.AcceptVisitor(Visitor, ParentScope);
     InternalType = Argument.Type;
 }
 public static NamedArgument NamedArgument(NRefactory.NamedArgumentExpression namedArgumentExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
 {
     return(new NamedArgument(namedArgumentExpression, scope, visitor));
 }
        public override void VisitNamedArgumentExpression(NamedArgumentExpression namedArgumentExpression)
        {
            ForceSpacesAfter(namedArgumentExpression.ColonToken, policy.SpaceInNamedArgumentAfterDoubleColon);

            base.VisitNamedArgumentExpression(namedArgumentExpression);
        }
 void IAstVisitor.VisitNamedArgumentExpression(NamedArgumentExpression namedArgumentExpression)
 {
     Visit(EnterNamedArgumentExpression, LeaveNamedArgumentExpression, namedArgumentExpression);
 }
 protected internal NamedArgument(NRefactory.NamedArgumentExpression namedArgumentExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     _namedArgumentExpression = namedArgumentExpression;
     Argument = namedArgumentExpression.Expression.AcceptVisitor(Visitor, ParentScope);
     InternalType = Argument.Type;
 }
Пример #6
0
        protected internal override bool DoMatch(AstNode other, PatternMatching.Match match)
        {
            NamedArgumentExpression o = other as NamedArgumentExpression;

            return(o != null && MatchString(this.Name, o.Name) && this.Expression.DoMatch(o.Expression, match));
        }
Пример #7
0
 public virtual S VisitNamedArgumentExpression(NamedArgumentExpression namedArgumentExpression, T data)
 {
     return(VisitChildren(namedArgumentExpression, data));
 }
 public virtual S VisitNamedArgumentExpression(NamedArgumentExpression namedArgumentExpression, T data)
 {
     throw new NotImplementedException();
 }
Пример #9
0
 public override AstExpression VisitNamedArgumentExpression(NRefactory.NamedArgumentExpression namedArgumentExpression, IScope scope)
 {
     return(AstExpression.NamedArgument(namedArgumentExpression, scope, this));
 }