From 331529b445a5ee1e1376aed4b7313694117aa778 Mon Sep 17 00:00:00 2001 From: christophkloeffel Date: Fri, 14 Jun 2024 13:41:45 +0200 Subject: [PATCH] adds line number to tracing tag of python functions to make them unique --- lobster/tools/python/python.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lobster/tools/python/python.py b/lobster/tools/python/python.py index 5d4ffaf7..1e545f4c 100755 --- a/lobster/tools/python/python.py +++ b/lobster/tools/python/python.py @@ -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):