Skip to content

Stable symbol GUID #1662

@format-x

Description

@format-x

I'm building a dependency graph of TypeScript project using ts-morph.

The goal is to get a deterministic, unique string representation of a symbol - something stable enough to uniquely identify it across modules (and parsing runs).

Is there any built-in function can produce this kind of FQN?
I know there's a getFullyQualifiedName() method, but it can produce duplicate names in some cases (and it doesn't take overloads into account?).

I guess I could build it from the file path and text span, but it would be nice if there were a built-in way to do this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions