[svn]
r6982: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Project.Type.n
VladD2
svnadmin at nemerle.org
Wed Nov 22 05:16:45 CET 2006
Log:
Refactoring.
Author: VladD2
Date: Wed Nov 22 05:16:42 2006
New Revision: 6982
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 Wed Nov 22 05:16:42 2006
@@ -70,14 +70,7 @@
match (member)
{
| prop is PropertyBuilder =>
- def isAccessor(m)
- {
- if (m.Attributes %&& NemerleAttributes.SpecialName && m.IsGenerated
- && (m.Name.OrdinalStartsWith("get_") || m.Name.OrdinalStartsWith("set_"))
- )
- m.Name.Substring(4) == prop.Name
- else false
- }
+ def isAccessor(m : object) { prop.GetGetter() == m || prop.GetSetter() == m }
def result = typeBuilder.GetActiveMember(fileIndex, line, col,
fun(member1, member2)
More information about the svn
mailing list