diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2016-07-26 01:59:59 +0300 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2016-07-26 02:00:21 +0300 |
commit | 5ca6d4172c8540d01b65d120f46db416d29740e3 (patch) | |
tree | bc416446872ca0e5dae72598cbb4cb071cd1f6fd | |
parent | 19497cfae13c3dcebed7dfeb1cba549e4c2deded (diff) |
Output space between modifiers and destructor tilde.
-rw-r--r-- | ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs b/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs index 56dbd39e..90463057 100644 --- a/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs +++ b/ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs @@ -1832,6 +1832,9 @@ namespace ICSharpCode.NRefactory.CSharp StartNode(destructorDeclaration); WriteAttributes(destructorDeclaration.Attributes); WriteModifiers(destructorDeclaration.ModifierTokens); + if (destructorDeclaration.ModifierTokens.Any()) { + Space(); + } WriteToken(DestructorDeclaration.TildeRole); TypeDeclaration type = destructorDeclaration.Parent as TypeDeclaration; if (type != null && type.Name != destructorDeclaration.Name) |