Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not representing relation when class is in a different namespace #84

Open
rugoncalves opened this issue Nov 9, 2021 · 2 comments
Open

Comments

@rugoncalves
Copy link

Version tplant: 3.1.1

Problem when a class is in a different namespace, the relation to that class is not represented.

Cause

namespace classes {
  export abstract class AbstractPrefix {
    abstract prefix: string;
  }
}

export class Greeter extends classes.AbstractPrefix {
  greeting: string;
  prefix: string = "Hello, ";
  //... rest of the sample
}

Output
image

Expected output
image

@rugoncalves
Copy link
Author

Also, inverting the test, also generates an expected output.

Example

namespace all {
  export abstract class AbstractPrefix {
    abstract prefix: string;
  }

  namespace classes {
    export class Greeter extends AbstractPrefix {
        greeting: string;
        prefix: string = "Hello, ";
        //... rest of the sample
    }
  }
}

Generates output
image

Expected output
image

@rugoncalves
Copy link
Author

rugoncalves commented Nov 9, 2021

For additional context, I'm trying to use your wonder-tool in our repo, hence finding these problems. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant