MCPcopy Create free account
hub / github.com/nodejs/node / emitJSDocSignature

Function emitJSDocSignature

test/fixtures/snapshot/typescript.js:113411–113425  ·  view source on GitHub ↗
(sig)

Source from the content-addressed store, hash-verified

113409 emitList(lit, ts.factory.createNodeArray(lit.jsDocPropertyTags), 33 /* ListFormat.JSDocComment */);
113410 }
113411 function emitJSDocSignature(sig) {
113412 if (sig.typeParameters) {
113413 emitList(sig, ts.factory.createNodeArray(sig.typeParameters), 33 /* ListFormat.JSDocComment */);
113414 }
113415 if (sig.parameters) {
113416 emitList(sig, ts.factory.createNodeArray(sig.parameters), 33 /* ListFormat.JSDocComment */);
113417 }
113418 if (sig.type) {
113419 writeLine();
113420 writeSpace();
113421 writePunctuation("*");
113422 writeSpace();
113423 emit(sig.type);
113424 }
113425 }
113426 function emitJSDocPropertyLikeTag(param) {
113427 emitJSDocTagName(param.tagName);
113428 emitJSDocTypeExpression(param.typeExpression);

Callers 2

emitJSDocCallbackTagFunction · 0.85

Calls 5

emitListFunction · 0.85
writeSpaceFunction · 0.85
writePunctuationFunction · 0.85
writeLineFunction · 0.70
emitFunction · 0.70

Tested by

no test coverage detected