`super.isEligible(t) || t.isInstanceOf[TypeApply]` makes the overloaded test with explicit parameters fail but `t.isInstanceOf[TypeApply] && super.isEligible(t)` works

On May 27, 2013, at 5:54 PM, Iulian Dragos <notifications@github.com> wrote:

> In org.scala.tools.eclipse.search/src/org/scala/tools/eclipse/search/searching/SearchPresentationCompiler.scala:
> 
> > +    //
> > +    //    In this case we have to extend the RangePosition 2 chars
> > +    //    past the end of the last type parameter,i.e.
> > +    //
> > +    //      {foo[String,Int](}
> > +    //
> > +
> > +    val EXTRA_SPACE = 1
> > +    val TYPE_PARAMS_END_CHAR = 1
> > +
> > +    val posInCaseOfTypeApply = pc.withParseTree(cu) { parsed =>
> > +      import pc._
> > +      // We want to find the TypeApply that contains the Select
> > +      // node.
> > +      class TypeApplyLocator(pos: Position) extends Locator(pos) {
> > +        override def isEligible(t: Tree) = t.isInstanceOf[TypeApply]
> You should call super: super.isEligible(t) || t.isInstanceOf[TypeApply]
> 
> —
> Reply to this email directly or view it on GitHub.
>