tplant
tplant copied to clipboard
Not representing relation when class is in a different namespace
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
Expected
output
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
Expected
output
For additional context, I'm trying to use your wonder-tool in our repo, hence finding these problems. :)