koknat / callGraph

A multi-language tool which parses source code for function definitions and calls
GNU General Public License v3.0
242 stars 28 forks source link

Update javascript function definition #13

Closed thegoatinthemachine closed 2 years ago

thegoatinthemachine commented 2 years ago

Since the parser assumes that a function definition will consume a whole line, start with whitespace, and the first word will be function, asynchronous function definitions get missed. This resolves that by adding the optional leading atom in the same fashion as other languages.