protected internal NamedExpression(NRefactory.NamedExpression namedExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor) {
     Name = namedExpression.Identifier;
     _namedExpression = namedExpression;
     Expression = _namedExpression.Expression.AcceptVisitor(Visitor, ParentScope);
     InternalType = Expression.Type;
 }
Exemple #2
0
 protected internal NamedExpression(NRefactory.NamedExpression namedExpression, IScope scope, INRefcatoryExpressionVisitor visitor)
     : base(scope, visitor)
 {
     Name             = namedExpression.Identifier;
     _namedExpression = namedExpression;
     Expression       = _namedExpression.Expression.AcceptVisitor(Visitor, ParentScope);
     InternalType     = Expression.Type;
 }
 public virtual S VisitNamedExpression(NamedExpression namedExpression, T data)
 {
     return(VisitChildren(namedExpression, data));
 }
 public override void VisitNamedExpression(NamedExpression namedExpression)
 {
     ForceSpacesAround(namedExpression.AssignToken, policy.SpaceAroundAssignment);
     base.VisitNamedExpression(namedExpression);
 }
 public static NamedExpression NamedExpression(NRefactory.NamedExpression namedExpression, IScope scope, INRefcatoryExpressionVisitor visitor) {
     return new NamedExpression(namedExpression, scope, visitor);
 }
Exemple #6
0
 void IAstVisitor.VisitNamedExpression(NamedExpression namedExpression)
 {
     Visit(EnterNamedExpression, LeaveNamedExpression, namedExpression);
 }
Exemple #7
0
 public override AstExpression VisitNamedExpression(NRefactory.NamedExpression namedExpression, IScope scope)
 {
     return(AstExpression.NamedExpression(namedExpression, scope, this));
 }