From 5a34a9c7d0efb863566a192a9d833716f66efc04 Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Thu, 24 Feb 2011 02:03:28 +0100 Subject: [PATCH] Fix output of checked and unchecked expressions. --- ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs b/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs index cf880653e6..1c67668d04 100644 --- a/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs +++ b/ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs @@ -566,7 +566,7 @@ namespace ICSharpCode.NRefactory.CSharp WriteKeyword("checked"); LPar(); Space(policy.WithinCheckedExpressionParantheses); - checkedExpression.AcceptVisitor(this, data); + checkedExpression.Expression.AcceptVisitor(this, data); Space(policy.WithinCheckedExpressionParantheses); RPar(); return EndNode(checkedExpression); @@ -933,7 +933,7 @@ namespace ICSharpCode.NRefactory.CSharp WriteKeyword("unchecked"); LPar(); Space(policy.WithinCheckedExpressionParantheses); - uncheckedExpression.AcceptVisitor(this, data); + uncheckedExpression.Expression.AcceptVisitor(this, data); Space(policy.WithinCheckedExpressionParantheses); RPar(); return EndNode(uncheckedExpression);