Browse Source

Fix output of checked and unchecked expressions.

newNRvisualizers
Daniel Grunwald 15 years ago
parent
commit
5a34a9c7d0
  1. 4
      ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

4
ICSharpCode.NRefactory/CSharp/OutputVisitor/OutputVisitor.cs

@ -566,7 +566,7 @@ namespace ICSharpCode.NRefactory.CSharp
WriteKeyword("checked"); WriteKeyword("checked");
LPar(); LPar();
Space(policy.WithinCheckedExpressionParantheses); Space(policy.WithinCheckedExpressionParantheses);
checkedExpression.AcceptVisitor(this, data); checkedExpression.Expression.AcceptVisitor(this, data);
Space(policy.WithinCheckedExpressionParantheses); Space(policy.WithinCheckedExpressionParantheses);
RPar(); RPar();
return EndNode(checkedExpression); return EndNode(checkedExpression);
@ -933,7 +933,7 @@ namespace ICSharpCode.NRefactory.CSharp
WriteKeyword("unchecked"); WriteKeyword("unchecked");
LPar(); LPar();
Space(policy.WithinCheckedExpressionParantheses); Space(policy.WithinCheckedExpressionParantheses);
uncheckedExpression.AcceptVisitor(this, data); uncheckedExpression.Expression.AcceptVisitor(this, data);
Space(policy.WithinCheckedExpressionParantheses); Space(policy.WithinCheckedExpressionParantheses);
RPar(); RPar();
return EndNode(uncheckedExpression); return EndNode(uncheckedExpression);

Loading…
Cancel
Save