jsdoc/test/fixtures/protectedtag2.js
Jeff Williams e8b692b334 allow the Closure version of the protected tag to specify a type (#731)
Also adds tests for the `protected` tag.
2014-08-13 17:04:47 -07:00

14 lines
237 B
JavaScript

/** @protected {number} */
var uidCounter = 1;
/**
* Unique ID generator.
* @constructor
*/
function UidGenerator() {}
/** Generate a unique ID. */
UidGenerator.prototype.generate = function generate() {
return uidCounter++;
};