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

Generated ID is not always unique #67

@lars-reimann

Description

@lars-reimann

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🪲Something isn't working

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions