[svn]
r7464: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2:
CodeModel/Project.Refactoring.n C...
phantom
svnadmin at nemerle.org
Thu Feb 22 16:58:51 CET 2007
Log:
Fix bug 919 (FindUsages): Symbol highlighting works bad, if there are more than one overload.
Author: phantom
Date: Thu Feb 22 16:58:49 2007
New Revision: 7464
Modified:
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Refactoring.n
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Static.Analysis.n
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/SmallTestsOne.n
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Refactoring.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Refactoring.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Refactoring.n Thu Feb 22 16:58:49 2007
@@ -222,7 +222,8 @@
Debug.WriteLine($"Expression Finder found such an expression of a usage: $usageTypedExpression");
match (usageTypedExpression)
{
- | member is IMember => mustBeMember.GetFullName() == member.GetFullName()
+ //mustBeMember.GetFullName() == member.GetFullName()
+ | member is IMember => mustBeMember.Location == member.Location
| _ => Debug.WriteLine("Not known IMember type! Perhaps, should be added to isReal function"); false
}
| _ => false
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Static.Analysis.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Static.Analysis.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Static.Analysis.n Thu Feb 22 16:58:49 2007
@@ -12,11 +12,11 @@
using Nemerle.Logging;
[assembly: LogFunction(Debug.WriteLine)]
-//#if phantom
+#if phantom
[assembly: LogFlag(phantom, true)]
-//#else
- //[assembly: LogFlag(phantom, false)]
-//#endif
+#else
+ [assembly: LogFlag(phantom, false)]
+#endif
namespace Nemerle.Completion2
{
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n Thu Feb 22 16:58:49 2007
@@ -32,7 +32,7 @@
//def suite = FindDefinitionTestProjectTwo();
def suite = FindUsagesTestProjectTwo();
suite.SetUp();
- suite.Test043();
+ suite.Test045();
}
public static Explode(this s : string, delimiter : string) : list[string]
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/SmallTestsOne.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/SmallTestsOne.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/SmallTestsOne.n Thu Feb 22 16:58:49 2007
@@ -73,11 +73,11 @@
{
Foo(x : object) : void
{
- | x is int => Bar(x)
- | x is string => Bar(x)
+ | x is int => Bar(x) // usage {44}
+ | x is string => Bar(x) // usage {45}
}
- Bar(_x : int) : void {}
- Bar(_x : string) : void {}
+ Bar(_x : int) : void {} // definition {44} Bar
+ Bar(_x : string) : void {} // definition {45} Bar
}
}
\ No newline at end of file
More information about the svn
mailing list