Author: marek
Date: 2007-08-09 04:33:01 -0400 (Thu, 09 Aug 2007)
New Revision: 83718
Modified:
trunk/mcs/mcs/ChangeLog
trunk/mcs/mcs/expression.cs
Log:
2007-08-09 Marek Safar <[EMAIL PROTECTED]>
* expression.cs (StringConcat.Append): Handle 3 and more concatenation
as single Concat call. How could we miss that :-(
Modified: trunk/mcs/mcs/ChangeLog
===================================================================
--- trunk/mcs/mcs/ChangeLog 2007-08-09 08:28:12 UTC (rev 83717)
+++ trunk/mcs/mcs/ChangeLog 2007-08-09 08:33:01 UTC (rev 83718)
@@ -1,3 +1,8 @@
+2007-08-09 Marek Safar <[EMAIL PROTECTED]>
+
+ * expression.cs (StringConcat.Append): Handle 3 and more concatenation
+ as single Concat call. How could we miss that :-(
+
2007-08-08 Marek Safar <[EMAIL PROTECTED]>
* expression.cs (ArrayCreation.CloneTo): Allocate exact size.
Modified: trunk/mcs/mcs/expression.cs
===================================================================
--- trunk/mcs/mcs/expression.cs 2007-08-09 08:28:12 UTC (rev 83717)
+++ trunk/mcs/mcs/expression.cs 2007-08-09 08:33:01 UTC (rev 83718)
@@ -2980,7 +2980,17 @@
}
}
+
//
+ // Multiple (3+) concatenation are resolved as multiple
StringConcat instances
+ //
+ StringConcat concat_oper = operand as StringConcat;
+ if (concat_oper != null) {
+ operands.AddRange (concat_oper.operands);
+ return;
+ }
+
+ //
// Conversion to object
//
if (operand.Type != TypeManager.string_type) {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches