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

VladD2 svnadmin at nemerle.org
Thu Nov 16 16:54:46 CET 2006


Log:
Refactoring.

Author: VladD2
Date: Thu Nov 16 16:54:44 2006
New Revision: 6912

Modified:
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Type.n
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.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	Thu Nov 16 16:54:44 2006
@@ -242,7 +242,7 @@
 
       def getTypeGotoInfo(tv)
       {
-      | MType.Class(ty is TypeBuilder, _) => List.Map(ty.PartsLocation, GotoInfo);
+      | MType.Class(ty is TypeBuilder, _) => ty.PartsLocation.Map(GotoInfo);
       | MType.Class(ty, _)                => [GotoInfo(ty)]
       | _                                 => []
       }
@@ -253,7 +253,7 @@
       | lv is LocalValue                  => [(GotoInfo(lv))]
       | tc is TExpr.ImplicitValueTypeCtor => getTypeGotoInfo(tc.ty)
       | tv is TyVar                       => getTypeGotoInfo(tv)
-      | tb is TypeBuilder                 => List.Map(tb.PartsLocation, GotoInfo);
+      | tb is TypeBuilder                 => tb.PartsLocation.Map(GotoInfo);
       | fh is Typedtree.Fun_header        => [(GotoInfo(fh))]
       | m  is IMember                     => [(GotoInfo(m))]
       | _                                 => []

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.n	Thu Nov 16 16:54:44 2006
@@ -191,12 +191,12 @@
       {
         def lst = 
           if (isType)
-            List.Map(typeBuilder.PartsLocation, GotoInfo);
+            typeBuilder.PartsLocation.Map(GotoInfo);
           else
             if (typeBuilder.LookupMemberAvailable)
-              List.Map(typeBuilder.GetMembers()      .Filter(m => m.Name == member.Name), GotoInfo);
+              typeBuilder.GetMembers()      .Filter(m => m.Name == member.Name).Map(GotoInfo);
             else
-              List.Map(typeBuilder.GetParsedMembers().Filter(m => m.Name == member.Name), GotoInfo);
+              typeBuilder.GetParsedMembers().Filter(m => m.Name == member.Name).Map(GotoInfo);
         lst.ToArray();
       }
       else



More information about the svn mailing list