MCPcopy
hub / github.com/jsdoc/jsdoc / processAlias

Function processAlias

lib/jsdoc/src/handlers.js:165–180  ·  view source on GitHub ↗
(parser, doclet, astNode)

Source from the content-addressed store, hash-verified

163}
164
165function processAlias(parser, doclet, astNode) {
166 let memberofName;
167
168 if (doclet.alias === '{@thisClass}') {
169 memberofName = parser.resolveThis(astNode);
170
171 // "class" refers to the owner of the prototype, not the prototype itself
172 if ( /^(.+?)(\.prototype|#)$/.test(memberofName) ) {
173 memberofName = RegExp.$1;
174 }
175 doclet.alias = memberofName;
176 }
177
178 doclet.addTag('name', doclet.alias);
179 doclet.postProcess();
180}
181
182// TODO: separate code that resolves `this` from code that resolves the module object
183function findSymbolMemberof(parser, doclet, astNode, nameStartsWith, trailingPunc) {

Callers 1

newSymbolDocletFunction · 0.85

Calls 4

resolveThisMethod · 0.80
testMethod · 0.80
addTagMethod · 0.80
postProcessMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…