Author: rolf
Date: 2007-05-08 05:02:33 -0400 (Tue, 08 May 2007)
New Revision: 76906

Modified:
   trunk/mcs/class/System/Microsoft.VisualBasic/ChangeLog
   trunk/mcs/class/System/Microsoft.VisualBasic/VBCodeGenerator.cs
Log:
2007-05-08  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>

        * VBCodeGenerator.cs: Don't add newlines when creating array creations 
expressions, fix the initial size expression and make sure a there's always {} 
somewhere.



Modified: trunk/mcs/class/System/Microsoft.VisualBasic/ChangeLog
===================================================================
--- trunk/mcs/class/System/Microsoft.VisualBasic/ChangeLog      2007-05-08 
09:01:54 UTC (rev 76905)
+++ trunk/mcs/class/System/Microsoft.VisualBasic/ChangeLog      2007-05-08 
09:02:33 UTC (rev 76906)
@@ -1,3 +1,7 @@
+2007-05-08  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
+
+       * VBCodeGenerator.cs: Don't add newlines when creating array creations 
expressions, fix the initial size expression and make sure a there's always {} 
somewhere.
+
 2007-04-27  Rolf Bjarne Kvinge  <[EMAIL PROTECTED]>
 
        * VBCodeCompiler.cs: In CompileFromFileBatch don't create error 
messages if compilation succeeded.

Modified: trunk/mcs/class/System/Microsoft.VisualBasic/VBCodeGenerator.cs
===================================================================
--- trunk/mcs/class/System/Microsoft.VisualBasic/VBCodeGenerator.cs     
2007-05-08 09:01:54 UTC (rev 76905)
+++ trunk/mcs/class/System/Microsoft.VisualBasic/VBCodeGenerator.cs     
2007-05-08 09:02:33 UTC (rev 76906)
@@ -154,9 +154,9 @@
 
                                OutputType (createType);
                                
-                               output.WriteLine (" {");
+                               output.Write ("() {");
                                ++Indent;
-                               OutputExpressionList (initializers, true);
+                               OutputExpressionList (initializers);
                                --Indent;
                                output.Write ("}");
 
@@ -171,7 +171,7 @@
 
                                OutputType (createType);
 
-                               output.Write ('(');
+                               output.Write ("((");
 
                                CodeExpression size = expression.SizeExpression;
                                if (size != null)
@@ -179,7 +179,7 @@
                                else
                                        output.Write (expression.Size);
 
-                               output.Write (')');
+                               output.Write (") - 1) {}");
                        }
                }
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to