MCPcopy Index your code
hub / github.com/jsdoc/jsdoc / parseType

Function parseType

lib/jsdoc/util/templateHelper.js:248–260  ·  view source on GitHub ↗
(longname)

Source from the content-addressed store, hash-verified

246};
247
248function parseType(longname) {
249 let err;
250
251 try {
252 return catharsis.parse(longname, {jsdoc: true});
253 }
254 catch (e) {
255 err = new Error(`unable to parse ${longname}: ${e.message}`);
256 logger.error(err);
257
258 return longname;
259 }
260}
261
262function stringifyType(parsedType, cssClass, stringifyLinkMap) {
263 return require('catharsis').stringify(parsedType, {

Callers 1

buildLinkFunction · 0.70

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…