micmath/jsdoc — pull request #74 by rafalwrzeszcz (2011-12-18 00:35:27+00:00)
Title: Exposing alias modifications.

When a local variable is aliased, all it's modifications should be "exported" to aliased symbol. It's very common case for all closure-based code:

```javascript
/**
* @namespace
*/
var A = {};

(function(ns) {
/**
* @namespace
* @alias A.F
*/
var f = {};

/**
* @return {String}
*/
f.method = function(){};

ns.F = f;
})(A);
```

This patch does the work. Returning second parameter from Parser.astnodeToMemberof is not so elegant, but I didn't want to change flow - we would need to pass doclet as parameter to operate on it.