Skip to content

Add --use-parents option? #185

@smoelius

Description

@smoelius

I was going to suggest that we close #18 in light of #184, but it turns out that PR is only a partial solution.

It catches cases like this:

mod a {
  use super::b;
}
mod b {
  use super::a;
}

But it doesn't catch cases like this:

mod a {
  use super::b;
  struct T;
}
mod b {
  use super::a::T;
}

because an edge b --> a::T is not the same as an edge b --> a.

I think the easiest solution would be to add something like --use-parents, which adds an edge b --> a whenever an edge b --> a::T is seen.

@regexident I realize this is "option creep" for a tool not originally intended for this purpose, but would you be open to adding such an option?

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