1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
2
// This code is distributed under MIT X11 license (for details please see \doc\license.txt)
5
using System.Collections.Generic;
7
namespace ICSharpCode.NRefactory.VB.Ast
9
public class AssignmentExpression : Expression
11
public readonly static Role<Expression> LeftExpressionRole = BinaryOperatorExpression.LeftExpressionRole;
12
public readonly static Role<VBTokenNode> OperatorRole = BinaryOperatorExpression.OperatorRole;
13
public readonly static Role<Expression> RightExpressionRole = BinaryOperatorExpression.RightExpressionRole;
15
public AssignmentExpression(Expression left, AssignmentOperatorType type, Expression right)
17
AddChild(left, LeftExpressionRole);
18
AddChild(right, RightExpressionRole);
22
public Expression Left {
23
get { return GetChildByRole(LeftExpressionRole); }
24
set { SetChildByRole(LeftExpressionRole, value); }
27
public AssignmentOperatorType Operator { get; set; }
29
public Expression Right {
30
get { return GetChildByRole(RightExpressionRole); }
31
set { SetChildByRole(RightExpressionRole, value); }
34
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
36
throw new NotImplementedException();
39
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
41
return visitor.VisitAssignmentExpression(this, data);