public override object Visit (Mono.CSharp.ParenthesizedExpression parenthesizedExpression) { var result = new MonoDevelop.CSharp.Ast.ParenthesizedExpression (); var location = LocationsBag.GetLocations (parenthesizedExpression); if (location != null) result.AddChild (new CSharpTokenNode (Convert (location[0]), 1), MonoDevelop.CSharp.Ast.ParenthesizedExpression.Roles.LPar); result.AddChild ((AstNode)parenthesizedExpression.Expr.Accept (this), MonoDevelop.CSharp.Ast.ParenthesizedExpression.Roles.Expression); if (location != null) result.AddChild (new CSharpTokenNode (Convert (location[1]), 1), MonoDevelop.CSharp.Ast.ParenthesizedExpression.Roles.RPar); return result; }
public virtual S VisitParenthesizedExpression(ParenthesizedExpression parenthesizedExpression, T data) { return(VisitChildren(parenthesizedExpression, data)); }