Skip to content

browsing graph of traits/structs/impls? #1545

Open
@dobkeratops

Description

@dobkeratops

Would there be any place in this IDE that could easily browse the graph of structs/traits/impls, -perhaps an enhancement of the structure window, (EDIT apparently this could go in the class hierarchy browser?)

Ideally this should be able to navigate globally, not just 'from the current file', showing the open graph-like relationship between the entities (contrasting with the inheritance hierarchy of traditional OOP)

When focussed on a trait: show all types that impl it,
When focussed on a type, show all traits that it impls's

It might also be handy to list all project wide functions that use a type, although this would get out of hand for universal types like 'Option', so there would be a need to sort by relevance (distance in module graph?) and apply a cutoff (perhaps collapsing excessive cases to 'related modules' would help)

The standard view of a 'file' would be a focus on a module

Whilst the overall IDE may be patterned around class based OOP, perhaps there is some correspondence elsewhere e.g. 'interfaces' (java classes can implement any number of interfaces in addition to inheriting?)

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-mediumIssue required decent knowledge about platform and project codebasehelp wanted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions