MCPcopy Index your code
hub / github.com/nodejs/node / emitTupleType

Function emitTupleType

test/fixtures/snapshot/typescript.js:111976–111981  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

111974 emit(node.type);
111975 }
111976 function emitTupleType(node) {
111977 emitTokenWithComment(22 /* SyntaxKind.OpenBracketToken */, node.pos, writePunctuation, node);
111978 var flags = ts.getEmitFlags(node) & 1 /* EmitFlags.SingleLine */ ? 528 /* ListFormat.SingleLineTupleTypeElements */ : 657 /* ListFormat.MultiLineTupleTypeElements */;
111979 emitList(node, node.elements, flags | 524288 /* ListFormat.NoSpaceIfEmpty */, parenthesizer.parenthesizeElementTypeOfTupleType);
111980 emitTokenWithComment(23 /* SyntaxKind.CloseBracketToken */, node.elements.end, writePunctuation, node);
111981 }
111982 function emitNamedTupleMember(node) {
111983 emit(node.dotDotDotToken);
111984 emit(node.name);

Callers 1

Calls 2

emitTokenWithCommentFunction · 0.85
emitListFunction · 0.85

Tested by

no test coverage detected