csnover/js-doc-parse — pull request #82 by neonstalwart (2013-03-23 06:48:56+00:00)
Title: defer resolving the annotated object.

by resolving this in the exporter, we can avoid a race condtion where
sometimes `relatedModule` had not been indicated when it should have been.

an example of what this fixes can be seen in dojo/_base/Color where the annotated type of a parameter is the return value of the same module. it's roughly equivalent to what's outlined in the code below

```js
define([], function () {
var Color = function () {}

Color.prototype.blendColors = function (/*Color*/ start, /*Color*/end, ...) { ... };

return Color;
});
```

when the type annotation for `start` and `end` are processed, the parser has not marked `Color` with a `relatedModule` and so the properties of `Color` are iterated to produce an "additional description" - this is wrong.

this effectively includes #81 so i'll close that in favor of this