MCPcopy
hub / github.com/jsdoc/jsdoc / setMemberof

Method setMemberof

lib/jsdoc/doclet.js:345–352  ·  view source on GitHub ↗

* Set the doclet's `memberof` property. * * @param {string} sid - The longname of the doclet's parent symbol.

(sid)

Source from the content-addressed store, hash-verified

343 * @param {string} sid - The longname of the doclet's parent symbol.
344 */
345 setMemberof(sid) {
346 /**
347 * The longname of the symbol that contains this one, if any.
348 * @type {string}
349 */
350 this.memberof = removeGlobal(sid)
351 .replace(/\.prototype/g, jsdoc.name.SCOPE.PUNC.INSTANCE);
352 }
353
354 /**
355 * Set the doclet's `longname` property.

Callers 2

name.jsFile · 0.80
setDocletMemberofFunction · 0.80

Calls 1

removeGlobalFunction · 0.85

Tested by

no test coverage detected