tplant icon indicating copy to clipboard operation
tplant copied to clipboard

Not representing relation when class is in a different namespace

Open rugoncalves opened this issue 3 years ago • 2 comments

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 avatar Nov 09 '21 11:11 rugoncalves

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 avatar Nov 09 '21 11:11 rugoncalves

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

rugoncalves avatar Nov 09 '21 11:11 rugoncalves