Skip to content

Commit

Permalink
Add class def
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksongoode committed Jan 2, 2024
1 parent 4e3a48d commit be897e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pycg/processing/cgprocessor.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,9 @@ def create_ext_edge(name, ext_modname):
# self.call_graph.add_edge(self.current_ns, dec_name)

if pointer_def.get_type() == utils.constants.CLS_DEF:
# Class def
self.call_graph.add_edge(self.current_method, pointer)

init_ns = self.find_cls_fun_ns(pointer, utils.constants.CLS_INIT)

for ns in init_ns:
Expand Down

0 comments on commit be897e5

Please sign in to comment.