mirror of https://github.com/icsharpcode/ILSpy.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.3 KiB
38 lines
1.3 KiB
// 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 |
|
{ |
|
/// <summary> |
|
/// ( AddHandler | RemoveHandler ) Expression, Expression |
|
/// </summary> |
|
public class AddRemoveHandlerStatement : Statement |
|
{ |
|
public static readonly Role<Expression> EventExpressionRole = new Role<Expression>("EventExpression", Expression.Null); |
|
public static readonly Role<Expression> DelegateExpressionRole = new Role<Expression>("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<T, S>(IAstVisitor<T, S> visitor, T data) |
|
{ |
|
return visitor.VisitAddRemoveHandlerStatement(this, data); |
|
} |
|
|
|
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match) |
|
{ |
|
throw new NotImplementedException(); |
|
} |
|
} |
|
}
|
|
|