|
From: <caw...@us...> - 2007-05-23 18:00:46
|
Revision: 2527
http://svn.sourceforge.net/rubyeclipse/?rev=2527&view=rev
Author: cawilliams
Date: 2007-05-23 11:00:45 -0700 (Wed, 23 May 2007)
Log Message:
-----------
make sure element is enclosed by scope before reporting match
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/MethodLocator.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/MethodLocator.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/MethodLocator.java 2007-05-23 16:01:12 UTC (rev 2526)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/core/search/matching/MethodLocator.java 2007-05-23 18:00:45 UTC (rev 2527)
@@ -28,7 +28,7 @@
IRubyElement[] children = parent.getChildren();
for (int i = 0; i < children.length; i++) {
IRubyElement child = children[i];
- if (child.isType(IRubyElement.METHOD)) {
+ if (child.isType(IRubyElement.METHOD) && locator.encloses(child)) {
int accuracy = getAccuracy((IMethod) child);
if (accuracy != IMPOSSIBLE_MATCH) {
IMember member = (IMember) child;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|