"declarations" really? Sure you could cram declare-function into
there, and it kind of emulates the forward-declaration meaning of it
in C/C++ which is clearly LSP got the idea from. Fine. But then what
about compiler-macro declarations and edebug declarations, etc, the
ones you use with `(declare (debug...))` in the beginning of functions
(sometimes not)? They're an entirely different concept and yet known
as "declarations" for any Elisp (or Common Lisp) user. It's awkward to
find both mixed when you're thinking of just one.
That's not what I'm suggesting. I suggest that find-declarations when
run on a generic should give the cl-defgeneric, and find-implementations
should give the cl-defmethods.
I think that would be a really helpful new feature, apart from all the
rest of this.
If the term "declarations" and "implementations" are a problem, we could
totally give them another name.
How about "find-generic" and "find-methods"? Just literally copying
what Elisp calls them. Then we can set aside all this worry about
sharing terms with LSP.