Skip to content

Commit

Permalink
adds line number to tracing tag of python functions to make them uniq…
Browse files Browse the repository at this point in the history
…ue (#39)
  • Loading branch information
christophkloeffel authored Jul 29, 2024
1 parent 6f8b5c3 commit 45c34ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lobster/tools/python/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ def fqn(self):
rv = self.parent.fqn() + "."
else:
rv = ""
rv += self.name
if self.location.line is not None and \
isinstance(self, Python_Function):
rv += f"{self.name}:{str(self.location.line)}"
else:
rv += self.name
return rv

def lobster_tag(self):
Expand Down

0 comments on commit 45c34ed

Please sign in to comment.