Go to type declaration for functions

If I have this piece of code:

1 class Foo(foo: Int => String) {
2     def bar = {
3           ...
4           val a = foo(5)
5           ...
6      }
7 }


and while placing the caret on foo in line 4, I try to go to type declaration, it brings me to the declaration of Scala's Function1.
However, I would like to end up at the specific implementation of function foo inside my codebase.

Is there a way to achieve this with the current Scala plugin?

Thank you,
Nermin

2 comments
Comment actions Permalink

ctrl+b + find usage?

0
Comment actions Permalink

It requires analyze data flow to here feature, which is not implemented for Scala. You can watch recently added issue: http://youtrack.jetbrains.com/issue/SCL-4592

Best regards,
Alexander Podkhalyuzin.

0

Please sign in to leave a comment.