Find and list all functions/methods in a set of JavaScript files
Posted
by Dan Milstein
on Stack Overflow
See other posts from Stack Overflow
or by Dan Milstein
Published on 2010-04-20T20:50:16Z
Indexed on
2010/04/20
20:53 UTC
Read the original article
Hit count: 122
JavaScript
Is there a way to read a set of JavaScript files, and output a description of where every function/method is defined?
I realize that this is likely impossible in full generality, due to the extreme dynamic nature of the language. What I'm imagining is something which gets the (relatively) straightforward cases. Ideally, I'd want it figure out where, e.g. some method got attached to string or hash or some other fundamental class (and also just let you find all the classes/functions that get defined once in one place).
Does such a tool exist?
© Stack Overflow or respective owner