Open HickeyHsu opened 2 years ago
Another problem: for import like :
import org.antlr.v4.runtime.*;
Tools fails to build proper nodes and edges
For example:
import ast.Visitor; public class Normalizer { visitors = new ArrayList<>(); visitors.add(new VisitorA ()); public class VisitorA extends Visitor{ } }
In this case,
VisitorA
will not generate a link withNormalizer
; At the same time, importedast.Visitor
identified asnode<ast.Visitor>
in dependency_graph, and identified asnode <visitor>
in inheritance_graph. This causes the repeatedly appearing node to in complete_graph.I haven`t tested in other language.
I made some rough changes to the code to make the improvements mentioned above. view at https://github.com/HickeyHsu/SoftwareNetGen
@HickeyHsu Thanks for the feedback. I'll have a closer look at the issues and try to give you feedback in the following days. Probably this is the case, since the parsers can't really handle nested structures (yet) to extract them in a recursive way. I'll have a look at your modifications, looking forward 👋.
For example:
In this case,
VisitorA
will not generate a link withNormalizer
; At the same time, importedast.Visitor
identified asnode<ast.Visitor>
in dependency_graph, and identified asnode <visitor>
in inheritance_graph. This causes the repeatedly appearing node to in complete_graph.I haven`t tested in other language.