[svn] r7691: nemerle/trunk/ncc/codedom/NemerleCodeGenerator.n

akhropov svnadmin at nemerle.org
Fri May 25 12:32:13 CEST 2007


Log:
minor formatting tweaks

Author: akhropov
Date: Fri May 25 12:32:03 2007
New Revision: 7691

Modified:
   nemerle/trunk/ncc/codedom/NemerleCodeGenerator.n

Modified: nemerle/trunk/ncc/codedom/NemerleCodeGenerator.n
==============================================================================
--- nemerle/trunk/ncc/codedom/NemerleCodeGenerator.n	(original)
+++ nemerle/trunk/ncc/codedom/NemerleCodeGenerator.n	Fri May 25 12:32:03 2007
@@ -495,11 +495,11 @@
       def output = Output;
       def options = this.Options;
 
-      output.Write ("try ");
+      output.Write ("try");
       GenerateBlock (statement.TryStatements);
 
       when (statement.CatchClauses.Count > 0) {
-        output.WriteLine (" catch ");
+        output.WriteLine ("catch");
         def bs = BracingStyle;
         OutputBlockStart (bs);
         ++Indent;
@@ -851,20 +851,20 @@
 
       if (declaration.IsInterface)
       {
-        when (property.HasGet) output.WriteLine("get; ");
-        when (property.HasSet) output.WriteLine("set; ");
+        when (property.HasGet) output.WriteLine("get;");
+        when (property.HasSet) output.WriteLine("set;");
       }
       else
       {
         when (property.HasGet)
         {
-          output.Write ("get ");
+          output.Write ("get");
           GenerateBlock (property.GetStatements);
         }
 
        when (property.HasSet)
         {
-          output.Write ("set ");
+          output.Write ("set");
           GenerateBlock (property.SetStatements);
         }
       }
@@ -881,7 +881,7 @@
       OutputMemberAccessModifier (constructor.Attributes);
       Output.Write ("this (");
       OutputParameters (constructor.Parameters);
-      Output.Write (") ");
+      Output.Write (')');
 
       def bs = BracingStyle;
       OutputBlockStart (bs);
@@ -921,7 +921,7 @@
     
     protected override GenerateTypeConstructor (constructor : CodeTypeConstructor) : void
     {
-      Output.Write ("static this () ");
+      Output.Write ("static this ()");
       GenerateBlock (constructor.Statements);
     }
 
@@ -1269,7 +1269,7 @@
 
     protected OutputBlockStart (bs : BracingType) : void
     {
-      | C      => Output.WriteLine('{');
+      | C      => Output.WriteLine(" {");
       | Block  => { Output.WriteLine(); Output.WriteLine('{'); }
       | Indent => ()
     }



More information about the svn mailing list