[svn] r6925: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Checker.n

IT svnadmin at nemerle.org
Fri Nov 17 06:24:52 CET 2006


Log:
Refactoring.

Author: IT
Date: Fri Nov 17 06:24:51 2006
New Revision: 6925

Modified:
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Checker.n

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Checker.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Checker.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Checker.n	Fri Nov 17 06:24:51 2006
@@ -281,15 +281,13 @@
       def getter = prop.GetGetter() :> MethodBuilder;
       def setter = prop.GetSetter() :> MethodBuilder;
 
+      // This is suppose to mean that the property is generated.
+      //
       when (getter != null && getter.Location == prop.Location ||
             getter == null && setter.Location == prop.Location)
         return;
 
-      def loc = ExprWalker().GetLocation(prop.Ast);
-      def (line, col) = FindNext(loc.EndLine, loc.EndColumn, "}", true);
-      def loc = Location(loc.FileIndex, loc.Line, loc.Column, line, col + 1);
-
-      AddRegion(loc.TrimStart(prop.BodyLocation, false), true);
+      AddRegion(prop.Ast.Location.TrimStart(prop.Ast.ty.Location, false), true);
 
       def add(f)
       {



More information about the svn mailing list