Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Grunwald <daniel@danielgrunwald.de>2016-07-26 01:59:59 +0300
committerDaniel Grunwald <daniel@danielgrunwald.de>2016-07-26 02:00:21 +0300
commit5ca6d4172c8540d01b65d120f46db416d29740e3 (patch)
treebc416446872ca0e5dae72598cbb4cb071cd1f6fd
parent19497cfae13c3dcebed7dfeb1cba549e4c2deded (diff)
Output space between modifiers and destructor tilde.
-rw-r--r--ICSharpCode.NRefactory.CSharp/OutputVisitor/CSharpOutputVisitor.cs3
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)