Re: [Jsdoc-user] Private members without default values don't work?
Status: Inactive
Brought to you by:
mmathews
From: Gabriel R. <gab...@gm...> - 2006-09-12 18:45:54
|
On Tue, Sep 12, 2006 at 02:17:23PM -0400, Al Vazquez wrote: > I've got a constructor that looks like: > > function C() > { > var x; > var y; > > this.accessorY = function() { return y;} > } > > When I run jsdoc against this file, x and y don't show up, but if I > change the lines from: > > var x; > > to: > > var x = 1; > > then jsdoc picks it up. Anyone have any insight into this? What file > might I patch to fix this? > You would have to alter JSDoc.pm to change this behaviour, in the function "deconstruct_inner_constructor". Search for the block that is run conditionally on the config setting "NO_LEXICAL_PRIVATES". - Gabriel |