Author: gonzalo
Date: 2005-04-18 18:16:39 -0400 (Mon, 18 Apr 2005)
New Revision: 43231

Modified:
   trunk/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
   trunk/mcs/class/System/Microsoft.CSharp/ChangeLog
Log:
2005-04-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>

        * CSharpCodeCompiler.cs: fix problem with the output CS8028.



Modified: trunk/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs
===================================================================
--- trunk/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs       
2005-04-18 20:27:41 UTC (rev 43230)
+++ trunk/mcs/class/System/Microsoft.CSharp/CSharpCodeCompiler.cs       
2005-04-18 22:16:39 UTC (rev 43231)
@@ -263,8 +263,13 @@
                                error.Line=Int32.Parse(match.Result("${line}"));
                        if (String.Empty != match.Result("${column}"))
                                
error.Column=Int32.Parse(match.Result("${column}"));
-                       if (match.Result("${level}")=="warning")
-                               error.IsWarning=true;
+
+                       string level = match.Result ("${level}");
+                       if (level == "warning")
+                               error.IsWarning = true;
+                       else if (level != "error")
+                               return null; // error CS8028 will confuse the 
regex.
+
                        error.ErrorNumber=match.Result("${number}");
                        error.ErrorText=match.Result("${message}");
                        return error;

Modified: trunk/mcs/class/System/Microsoft.CSharp/ChangeLog
===================================================================
--- trunk/mcs/class/System/Microsoft.CSharp/ChangeLog   2005-04-18 20:27:41 UTC 
(rev 43230)
+++ trunk/mcs/class/System/Microsoft.CSharp/ChangeLog   2005-04-18 22:16:39 UTC 
(rev 43231)
@@ -1,3 +1,7 @@
+2005-04-18 Gonzalo Paniagua Javier <[EMAIL PROTECTED]>
+
+       * CSharpCodeCompiler.cs: fix problem with the output CS8028.
+
 2005-02-03  Atsushi Enomoto  <[EMAIL PROTECTED]>
 
        * CSharpCodeCompiler.cs : On windows, use gmcs under 2.0 profile too.

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

Reply via email to