Author: mkrueger
Date: 2008-02-04 01:57:41 -0500 (Mon, 04 Feb 2008)
New Revision: 94727

Modified:
   trunk/monodevelop/main/src/addins/CSharpBinding/ChangeLog
   trunk/monodevelop/main/src/addins/CSharpBinding/Parser/CSharpVisitor.cs
Log:
* Parser/CSharpVisitor.cs: Corrected type location.

Modified: trunk/monodevelop/main/src/addins/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/main/src/addins/CSharpBinding/ChangeLog   2008-02-04 
04:33:28 UTC (rev 94726)
+++ trunk/monodevelop/main/src/addins/CSharpBinding/ChangeLog   2008-02-04 
06:57:41 UTC (rev 94727)
@@ -1,3 +1,7 @@
+2008-02-04  Mike Krüger <[EMAIL PROTECTED]> 
+
+       * Parser/CSharpVisitor.cs: Corrected type location.
+
 2008-01-25  Lluis Sanchez Gual <[EMAIL PROTECTED]> 
 
        * CSharpBinding.addin.xml: Update MD version.

Modified: 
trunk/monodevelop/main/src/addins/CSharpBinding/Parser/CSharpVisitor.cs
===================================================================
--- trunk/monodevelop/main/src/addins/CSharpBinding/Parser/CSharpVisitor.cs     
2008-02-04 04:33:28 UTC (rev 94726)
+++ trunk/monodevelop/main/src/addins/CSharpBinding/Parser/CSharpVisitor.cs     
2008-02-04 06:57:41 UTC (rev 94727)
@@ -141,8 +141,9 @@
                
                public override object VisitTypeDeclaration(TypeDeclaration 
typeDeclaration, object data)
                {
-                       DefaultRegion bodyRegion = 
GetRegion(typeDeclaration.StartLocation, typeDeclaration.EndLocation);
-                       DefaultRegion declarationRegion = bodyRegion; 
//GetRegion (typeDeclaration.DeclarationStartLocation, 
typeDeclaration.DeclarationEndLocation);
+                       DefaultRegion bodyRegion = 
GetRegion(typeDeclaration.BodyStartLocation, typeDeclaration.EndLocation);
+                       bodyRegion.EndColumn++;
+                       DefaultRegion declarationRegion = 
GetRegion(typeDeclaration.StartLocation, typeDeclaration.EndLocation);
                        Modifiers mf = typeDeclaration.Modifier;
                        Class c = new Class(cu, 
TranslateClassType(typeDeclaration.Type), mf, declarationRegion, bodyRegion);
                        

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

Reply via email to