MCPcopy
hub / github.com/jsdoc/jsdoc / getParentDocletFromEvent

Function getParentDocletFromEvent

lib/jsdoc/src/visitor.js:85–92  ·  view source on GitHub ↗
(parser, {doclet})

Source from the content-addressed store, hash-verified

83
84// Given an event, get the parent node's doclet.
85function getParentDocletFromEvent(parser, {doclet}) {
86 if (doclet && doclet.meta && doclet.meta.code && doclet.meta.code.node &&
87 doclet.meta.code.node.parent) {
88 return parser._getDocletById(doclet.meta.code.node.parent.nodeId);
89 }
90
91 return null;
92}
93
94/**
95 * For function parameters that have inline documentation, create a function that will merge the

Callers 1

makeInlineParamsFinisherFunction · 0.85

Calls 1

_getDocletByIdMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…