[svn] r6845: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Type.n

IT svnadmin at nemerle.org
Tue Nov 7 07:17:39 CET 2006


Log:
Method return type location.

Author: IT
Date: Tue Nov  7 07:17:37 2006
New Revision: 6845

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

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Type.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Type.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Type.n	Tue Nov  7 07:17:37 2006
@@ -107,17 +107,21 @@
         }
         else if (method.fun_header.Location.Contains(line, col))
         {
+          if (method.fun_header.ret_type_loc.Contains(line, col))
+          {
+            (method.fun_header.ret_type_loc, null, method.fun_header.ret_type)
+          }
+          else
+          {
           def parm = method.fun_header.parms.Find((p) => p.ty_loc.Contains(line, col));
 
           match (parm)
           {
-          | Some(p) =>
-
-            (p.ty_loc, null, p.ty)
-
+            | Some(p) => (p.ty_loc,         null, p.ty)
           | _ => (Location.Default, null, null)
           }
         }
+        }
         else
         {
           (Location.Default, null, null)



More information about the svn mailing list