jdeal/doctor — Issue #9: Literal object programming support
Author: alexstrat
Created: 2012-02-07 12:35:42+00:00
State: open

Hi,

I came across *doctor* while searching an easy hackable alternative to JsDoc, and I think I found something impressive !

Actually, I wanted to quickly generate a documentation for my semester project ([KadOH](https://github.com/jinroh/kadoh)) before present it, but I think that *doctor* does not yet support literal prototype, does it ?

I mean by *literal prototype* something like that :

```js
/**
* Document the constructor
*/
Person = function (name) {};

Person.prototype = {

/**
* Document the #setName
*/
setName: function (name) {},

/**
* Document the #getName
*/
getName: function () {}
};
```
Have some hints on how I can make doctor support literal prototype ? Where should I start ? I hope not in the grammar : i'm affraid of it..

Moreover I use a inheritence framework ([Klass](http://dustindiaz.com/klass)) – that looks like *literal object programming* (check [here](https://github.com/jinroh/kadoh/blob/experimental/lib/client/node.js#L28) an example). Are the inheritence JsDoc tags **@augments** already supported ?