I
I
Ilusha2015-02-06 14:14:50
JavaScript
Ilusha, 2015-02-06 14:14:50

How to render javascript code?

Hello.
I asked myself the following question: there is a javascript code that is covered by jsdoc.
I would like to build a dependency graph of classes/methods/properties of this code.
Purpose: to see the graph and be able to see what dependencies exist on each specific node. (for example: the class a1 is used in b1, b2, and the method a1.m1 is used directly in b2.m1 and indirectly in c1.m1)
I did not find any ready-made tools, so I only have ideas.
My reasoning:
It seems to me that inside the ide (idea, phpstorm) there is an ast-tree that can be isolated (which is built using jsdoc as well).
Or some other ways (when building documentation from jsDoc, there is an ast-tree, but it is not known how complete it is)
Uglify also builds an ast tree, you can think in this direction.
Maybe someone also asked this question and advanced in it better than me in a couple of hours?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question