How to see where a symbol is defined

If I have the file

function f end

f(x) = x
f() = 5

I can use methods to find the method definitions on lines 3 and 4, but how can I find the function declaration on line 1?

1 Like

if you know this is the pattern Iā€™d just grep function ...

1 Like

That would work in this specific case. Perhaps I should have asked a more general question: How can I find where a symbol is declared

function f end # here
f(x) = x

g(x) = 5 # here
g() = 5

struct T # here

const N = 3 # here
1 Like