MCPcopy Index your code
hub / github.com/stdlib-js/stdlib / needsSignature

Function needsSignature

tools/docs/jsdoc/templates/html/publish.js:45–64  ·  view source on GitHub ↗
(doclet)

Source from the content-addressed store, hash-verified

43}
44
45function needsSignature(doclet) {
46 var needsSig = false;
47
48 // function and class definitions always get a signature
49 if (doclet.kind === 'function' || doclet.kind === 'class') {
50 needsSig = true;
51 }
52 // typedefs that contain functions get a signature, too
53 else if (doclet.kind === 'typedef' && doclet.type && doclet.type.names &&
54 doclet.type.names.length) {
55 for (var i = 0, l = doclet.type.names.length; i < l; i++) {
56 if (doclet.type.names[i].toLowerCase() === 'function') {
57 needsSig = true;
58 break;
59 }
60 }
61 }
62
63 return needsSig;
64}
65
66function getSignatureAttributes(item) {
67 var attributes = [];

Callers 1

publish.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…