// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt) // This code is distributed under the GNU LGPL (for details please see \doc\license.txt) using System; namespace ICSharpCode.NRefactory.VB.Ast { /// /// ( AddHandler | RemoveHandler ) Expression, Expression /// public class AddRemoveHandlerStatement : Statement { public static readonly Role EventExpressionRole = new Role("EventExpression", Expression.Null); public static readonly Role DelegateExpressionRole = new Role("DelegateExpression", Expression.Null); public bool IsAddHandler { get; set; } public Expression EventExpression { get { return GetChildByRole(EventExpressionRole); } set { SetChildByRole(EventExpressionRole, value); } } public Expression DelegateExpression { get { return GetChildByRole(DelegateExpressionRole); } set { SetChildByRole(DelegateExpressionRole, value); } } public override S AcceptVisitor(IAstVisitor visitor, T data) { return visitor.VisitAddRemoveHandlerStatement(this, data); } protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match) { throw new NotImplementedException(); } } }