commit | cfe3f450c14180e7873a68cc973dad42ff78530a | [log] [tgz] |
---|---|---|
author | apanchenk <apanchenk> | Mon Dec 06 12:33:24 2010 +0000 |
committer | apanchenk <apanchenk> | Mon Dec 06 12:33:24 2010 +0000 |
tree | 6f6353d46f4964b9681d97f40f2b830439904316 | |
parent | 4532d5553f6020b8c510343ca1fd090fd77e3965 [diff] |
don't create search pattern for anonymos functions
diff --git a/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/SearchPattern.java b/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/SearchPattern.java index 26038ab..a99d354 100644 --- a/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/SearchPattern.java +++ b/core/plugins/org.eclipse.dltk.core/search/org/eclipse/dltk/core/search/SearchPattern.java
@@ -1051,6 +1051,11 @@ } } char[] selector = method.getElementName().toCharArray(); + if (selector.length == 0) { + // TODO introduce pattern for anonymous functions? (similar to + // local variables) + return null; + } // Create method/constructor pattern boolean findMethodDeclarations = true; boolean findMethodReferences = true;