Skip to content

Commit

Permalink
adds line number to tracing tag of python functions to make them unique
Browse files Browse the repository at this point in the history
  • Loading branch information
christophkloeffel committed Jul 29, 2024
1 parent 14f23a8 commit 331529b
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 331529b

Please sign in to comment.