Closed rugoncalves closed 2 years ago
What is the expected output with this input? I believe the issue here is the period is unexpected in the namespace name.
The expected output is the same as the output of the non-abbreviated form:
namespace very {
namespace special {
export class Greeter {
greeting: string;
prefix: string = "Hello, ";
constructor(message: string) {
this.greeting = message;
}
set prefix(prefix: string) {
this.prefix = prefix;
}
greet(prefix: string = "Foo"): string;
greet(): string {
return this.prefix + this.greeting;
}
}
}
}
That is:
Since namespace very.special {
is the abbreviation form of
namespace very {
namespace special {
Thank you for the follow up!
Problem
When a namespace defines several namespaces, the output file is just the first namespace, and everything else is ignored.Scenario
Imagine defining a namespace that contains other namespaces until it has the class:When running the command line:
tplant --input test/Playground/Classes/*.ts --output test/Playground/testmultinamespace.svg
The output is the following:![image](https://user-images.githubusercontent.com/10534623/140088934-20692788-065e-4afd-953a-05a3cde33708.png)
All the code that is analyzed before this pattern gets added to the SVG, but after this pattern, nothing else is added.