vitsalis / PyCG

Static Python call graph generator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add class def in addition to MRO

jacksongoode opened this issue · comments

# pycg/processing/cgprocessor.py
...
if pointer_def.get_type() == utils.constants.CLS_DEF:

    # Class def
    self.call_graph.add_edge(self.current_method, pointer)
...

For our purposes we would also want the class itself. Would it be possible to add the option to include it as an edge in the config?

Closing due to archival of repository.