Author: lluis
Date: 2007-05-29 07:23:57 -0400 (Tue, 29 May 2007)
New Revision: 78108

Modified:
   trunk/monodevelop/Extras/CSharpBinding/ChangeLog
   trunk/monodevelop/Extras/CSharpBinding/Parser/Resolver.cs
Log:
* Parser/Resolver.cs: Added protection against infinite loop in
  ResolveIdentifier. Fixes bug #81769.

Modified: trunk/monodevelop/Extras/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/ChangeLog    2007-05-29 11:03:17 UTC 
(rev 78107)
+++ trunk/monodevelop/Extras/CSharpBinding/ChangeLog    2007-05-29 11:23:57 UTC 
(rev 78108)
@@ -1,3 +1,8 @@
+2007-05-29  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
+
+       * Parser/Resolver.cs: Added protection against infinite loop in
+         ResolveIdentifier. Fixes bug #81769.
+
 2007-05-25  Jeffrey Stedfast  <[EMAIL PROTECTED]>
 
        * Parser/CodeGenerator.cs (EncapsulateFieldImpGetSet):

Modified: trunk/monodevelop/Extras/CSharpBinding/Parser/Resolver.cs
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/Parser/Resolver.cs   2007-05-29 
11:03:17 UTC (rev 78107)
+++ trunk/monodevelop/Extras/CSharpBinding/Parser/Resolver.cs   2007-05-29 
11:23:57 UTC (rev 78108)
@@ -238,7 +238,7 @@
                        LanguageItemVisitor itemVisitor = new 
LanguageItemVisitor (this);
                        ILanguageItem item = expr.AcceptVisitor (itemVisitor, 
null) as ILanguageItem;
                        
-                       if (item == null && expr is BinaryOperatorExpression) {
+                       if (item == null && expr is BinaryOperatorExpression && 
!id.EndsWith ("()")) {
                                // The expression parser does not correctly 
parse individual generic type names.
                                // Try resolving again but using a more complex 
expression.
                                return ResolveIdentifier (fileCompilationUnit, 
id + "()", line, col);

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

Reply via email to