jleyba / js-dossier

A JavaScript documentation generation tool.
Apache License 2.0
149 stars 15 forks source link

Subclasses nested in superclasses show up redundantly #89

Open shicks opened 7 years ago

shicks commented 7 years ago

This minimal repro case

goog.module('AbstractList');
class AbstractList {}
AbstractList.Mutable = class extends AbstractList {};
AbstractList.ArrayList = class extends AbstractList.Mutable {};
exports = AbstractList;

results in the following types in the left-hand panel:

The various aliases are marked as such, but there's still a lot of redundancy (and somewhat strange which are duplicated and which aren't - e.g. why no Mutable.Mutable?).

shicks commented 7 years ago

Furthermore, if I move ArrayList to its own file, rather than nesting it, I also end up with a very strange AbstractList.able class, which is marked as yet another alias to AbstractList.Mutable.