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

Function emitJsxSelfClosingElement

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

Source from the content-addressed store, hash-verified

113126 emit(node.closingElement);
113127 }
113128 function emitJsxSelfClosingElement(node) {
113129 writePunctuation("<");
113130 emitJsxTagName(node.tagName);
113131 emitTypeArguments(node, node.typeArguments);
113132 writeSpace();
113133 emit(node.attributes);
113134 writePunctuation("/>");
113135 }
113136 function emitJsxFragment(node) {
113137 emit(node.openingFragment);
113138 emitList(node, node.children, 262144 /* ListFormat.JsxElementOrFragmentChildren */);

Callers 1

Calls 5

writePunctuationFunction · 0.85
emitJsxTagNameFunction · 0.85
emitTypeArgumentsFunction · 0.85
writeSpaceFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected