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?
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?
if you know this is the pattern Iād just grep function ...
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
x::Int
end
const N = 3 # here