|
From: <caw...@us...> - 2007-05-23 19:01:23
|
Revision: 2530
http://svn.sourceforge.net/rubyeclipse/?rev=2530&view=rev
Author: cawilliams
Date: 2007-05-23 12:01:17 -0700 (Wed, 23 May 2007)
Log Message:
-----------
new method to create a method reference match
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/MatchLocator.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/MatchLocator.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/MatchLocator.java 2007-05-23 19:00:51 UTC (rev 2529)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/MatchLocator.java 2007-05-23 19:01:17 UTC (rev 2530)
@@ -22,6 +22,7 @@
import org.rubypeople.rdt.core.search.FieldReferenceMatch;
import org.rubypeople.rdt.core.search.IRubySearchScope;
import org.rubypeople.rdt.core.search.MethodDeclarationMatch;
+import org.rubypeople.rdt.core.search.MethodReferenceMatch;
import org.rubypeople.rdt.core.search.SearchDocument;
import org.rubypeople.rdt.core.search.SearchMatch;
import org.rubypeople.rdt.core.search.SearchParticipant;
@@ -527,4 +528,18 @@
return new FieldReferenceMatch(enclosingElement, binding, accuracy, offset, length, isReadAccess, isWriteAccess, false, participant, resource);
}
+
+ public SearchMatch newMethodReferenceMatch(
+ IRubyElement enclosingElement,
+ IRubyElement binding,
+ int accuracy,
+ int offset,
+ int length,
+ boolean isConstructor,
+ Node reference) {
+ SearchParticipant participant = getParticipant();
+ IResource resource = this.currentPossibleMatch.resource;
+ return new MethodReferenceMatch(enclosingElement, binding, accuracy, offset, length, isConstructor, false, participant, resource);
+ }
+
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|