Description
Somehow, it would be nice if a simple resolver would warn if it could have resolved something if it was part of the visibleTypes, but failed to do so. An example case that made me scratch my head for an hour or two was:
dartdoc/lib/templates/html/class.html
Line 19 in 0922660
I had erroneously thought my refactor in #2665 meant I could delete DefinedElementType
from the visibleTypes list. When I did so and mustachio went to resolve linkedName
here, it skipped over the DefinedElementType
inside publicSuperChainReversed
and instead resolved linkedName
against the class. This meant that the class's name repeated in the superchain list.
This was particularly troublesome to debug as unless someone was actually looking at the generated HTML there was no way to know, and everything looked correct in the debugger, the superchain list objects were correct, and so forth. In fact, if it wasn't for that I remembered I had removed that and noticed that the superchain was a collection of DefinedElementType
s I might still be scratching my head.
I am not sure how to make this warning happen without making simple resolvers much less simple...