*fixes
diff --git a/plugins/org.eclipse.dltk.python.core/src/org/eclipse/dltk/python/internal/core/parser/visitors/PythonSourceElementRequestor.java b/plugins/org.eclipse.dltk.python.core/src/org/eclipse/dltk/python/internal/core/parser/visitors/PythonSourceElementRequestor.java index 6a8278a..6a17222 100644 --- a/plugins/org.eclipse.dltk.python.core/src/org/eclipse/dltk/python/internal/core/parser/visitors/PythonSourceElementRequestor.java +++ b/plugins/org.eclipse.dltk.python.core/src/org/eclipse/dltk/python/internal/core/parser/visitors/PythonSourceElementRequestor.java
@@ -294,6 +294,26 @@ processAssignment(left, right); return false; } + else if (expression instanceof ExtendedVariableReference) { + ExtendedVariableReference ref = (ExtendedVariableReference) expression; + int expressionCount = ref.getExpressionCount(); + for (int i = 0; i < expressionCount; i++) { + Expression e = ref.getExpression(i); + if (ref.isCall(i) && e instanceof VariableReference ) { + this.fRequestor.acceptMethodReference( + ((VariableReference) e).getName().toCharArray(), 0, + e.sourceStart(), e.sourceEnd()); + } else if (e instanceof VariableReference) { + this.fRequestor.acceptFieldReference( + ((VariableReference) e).getName().toCharArray(), e + .sourceStart()); + } + } + } else if (expression instanceof VariableReference) { + this.fRequestor.acceptFieldReference( + ((VariableReference) expression).getName().toCharArray(), + expression.sourceStart()); + } return true; }
diff --git a/plugins/org.eclipse.dltk.python.core/src/org/eclipse/dltk/python/internal/core/search/PythonSearchFactory.java b/plugins/org.eclipse.dltk.python.core/src/org/eclipse/dltk/python/internal/core/search/PythonSearchFactory.java index cb6ba5e..3c65c75 100644 --- a/plugins/org.eclipse.dltk.python.core/src/org/eclipse/dltk/python/internal/core/search/PythonSearchFactory.java +++ b/plugins/org.eclipse.dltk.python.core/src/org/eclipse/dltk/python/internal/core/search/PythonSearchFactory.java
@@ -13,21 +13,12 @@ */ public class PythonSearchFactory extends AbstractSearchFactory { - /* - * @see org.eclipse.dltk.core.ISearchFactory#createMatchLocator(org.eclipse.dltk.core.search.SearchPattern, - * org.eclipse.dltk.core.search.SearchRequestor, - * org.eclipse.dltk.core.search.IDLTKSearchScope, - * org.eclipse.core.runtime.SubProgressMonitor) - */ public MatchLocator createMatchLocator(SearchPattern pattern, SearchRequestor requestor, IDLTKSearchScope scope, SubProgressMonitor monitor) { return new PythonMatchLocator(pattern, requestor, scope, monitor); } - /* - * @see org.eclipse.dltk.core.ISearchFactory#createMatchParser(org.eclipse.dltk.core.search.matching.MatchLocator) - */ public IMatchLocatorParser createMatchParser(MatchLocator locator) { return new PythonMatchLocationParser(locator); }