Skip to content
This repository has been archived by the owner on Nov 23, 2024. It is now read-only.

Generated ID is not always unique #67

Open
lars-reimann opened this issue Mar 22, 2023 · 0 comments
Open

Generated ID is not always unique #67

lars-reimann opened this issue Mar 22, 2023 · 0 comments
Labels
bug 🪲 Something isn't working

Comments

@lars-reimann
Copy link
Member

Describe the bug

If two functions/classes with the same name exist in a file, they may get the same ID. While such code is generally pointless, we should still account for it.

To Reproduce

Example code:

def f():
   pass

def f():
   pass

Expected behavior

A unique ID. We could add line and column number in the source file to the ID.

Screenshots (optional)

No response

Additional Context (optional)

No response

@lars-reimann lars-reimann added the bug 🪲 Something isn't working label Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug 🪲 Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant