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)
6
namespace ICSharpCode.NRefactory.VB.Ast
9
/// Description of ParenthesizedExpression.
11
public class ParenthesizedExpression : Expression
13
public ParenthesizedExpression()
17
public Expression Expression {
18
get { return GetChildByRole(Roles.Expression); }
19
set { SetChildByRole(Roles.Expression, value); }
22
protected internal override bool DoMatch(AstNode other, ICSharpCode.NRefactory.PatternMatching.Match match)
24
var expr = other as ParenthesizedExpression;
25
return expr != null &&
26
Expression.DoMatch(expr.Expression, match);
29
public override S AcceptVisitor<T, S>(IAstVisitor<T, S> visitor, T data)
31
return visitor.VisitParenthesizedExpression(this, data);