Producing call graph for node.js module

36 views
Skip to first unread message

Masudul Hasan Masud

unread,
Aug 31, 2022, 7:26:12 PM8/31/22
to Closure Compiler Discuss
I know this question or a similar one has been asked multiple times. Unfortunately, I can not find any working answer. So, this is what I want to do:
I have a path to a node.js module and I want to get the call graph or function call graph for that module.

I have found a couple of starting points but none of them are working. for example, I couldn't find the class "NameReferenceGraph" that was suggested to one of the questions previously.

I understand this might not be possible in the straightforward way and I have to tweak a few things to get the desired output but I can not find any class that takes a folder/module path and might produce call graph in the process.


Regards.



John Lenz

unread,
Sep 2, 2022, 7:38:28 PM9/2/22
to closure-compiler
The NameReferenceGraph was removed some years ago as it wasn't being maintained (as wasn't suitable for compiler optimization passes).




--

---
You received this message because you are subscribed to the Google Groups "Closure Compiler Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to closure-compiler-d...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/closure-compiler-discuss/61bd6975-492d-4ba9-8a1d-f8b8fba90effn%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages