Skip to content

Commit

Permalink
Fix call chain following for external types
Browse files Browse the repository at this point in the history
Fixes #583
  • Loading branch information
ZedThree committed Nov 3, 2023
1 parent 3012896 commit 177ef84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ford/sourceform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1477,9 +1477,9 @@ def get_label_item(context, label):
context = item
elif isinstance(item, FortranVariable):
type_str = strip_type(item.full_type)
if item.parent is None:
if not (parent_all_types := getattr(item.parent, "all_types", {})):
return None
context = item.parent.all_types.get(type_str, None)
context = parent_all_types.get(type_str, None)
else:
context = None

Expand Down

0 comments on commit 177ef84

Please sign in to comment.