Andrew Garrett schreef:
Hi all,
Usually, for code documentation, we've either grepped the code for the
method we wanted to look for, or used doxygen. I'm sure many of us
have found doxygen a little too clunky, with too many clicks to find
the required information.
For fun, I ran a perl script to parse our source code and pick out
function data. Then I wrote a simple web-interface that searches for
functions as you type, displaying a list of declaration lines, with a
[show] link to show the full code of the function.
I thought this might be useful to some people who constantly grep
through the code to find out the arguments to a function.
The site is available at:
<http://mwref.werdn.us>
I get this funny bug when searching for
"getUserPermiss", which lists
Title::getUserPermissionsErrorsInternal(), but not
Title::getUserPermissionsErrors(). Also, function global::wfMsg( $key )
is kind of confusing, the global:: part should be dropped.
There's also some buggy behavior that seems to be intermittent, and I
think I know what causes it. When I type "getdb", for instance, I'll get
a list of everything that starts with "getdb", but a few seconds later I
get a list of everything starting with "get". What I *think* is
happening here is that the request for "get" takes longer than the
requests for "getd" and "getdb" and overwrites their results.
Roan Kattouw (Catrope)