Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Fix output of checked and unchecked expressions.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgrunwald committed Feb 24, 2011
1 parent 695138d commit 5a34a9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs
Expand Up @@ -566,7 +566,7 @@ public object VisitCheckedExpression(CheckedExpression checkedExpression, object
WriteKeyword("checked");
LPar();
Space(policy.WithinCheckedExpressionParantheses);
checkedExpression.AcceptVisitor(this, data);
checkedExpression.Expression.AcceptVisitor(this, data);
Space(policy.WithinCheckedExpressionParantheses);
RPar();
return EndNode(checkedExpression);
Expand Down Expand Up @@ -933,7 +933,7 @@ public object VisitUncheckedExpression(UncheckedExpression uncheckedExpression,
WriteKeyword("unchecked");
LPar();
Space(policy.WithinCheckedExpressionParantheses);
uncheckedExpression.AcceptVisitor(this, data);
uncheckedExpression.Expression.AcceptVisitor(this, data);
Space(policy.WithinCheckedExpressionParantheses);
RPar();
return EndNode(uncheckedExpression);
Expand Down

0 comments on commit 5a34a9c

Please sign in to comment.