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

Function emitTypeLiteral

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

Source from the content-addressed store, hash-verified

111959 emitTypeArguments(node, node.typeArguments);
111960 }
111961 function emitTypeLiteral(node) {
111962 writePunctuation("{");
111963 var flags = ts.getEmitFlags(node) & 1 /* EmitFlags.SingleLine */ ? 768 /* ListFormat.SingleLineTypeLiteralMembers */ : 32897 /* ListFormat.MultiLineTypeLiteralMembers */;
111964 emitList(node, node.members, flags | 524288 /* ListFormat.NoSpaceIfEmpty */);
111965 writePunctuation("}");
111966 }
111967 function emitArrayType(node) {
111968 emit(node.elementType, parenthesizer.parenthesizeNonArrayTypeOfPostfixType);
111969 writePunctuation("[");

Callers 1

Calls 2

writePunctuationFunction · 0.85
emitListFunction · 0.85

Tested by

no test coverage detected