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

Function emitJsxOpeningElementOrFragment

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

Source from the content-addressed store, hash-verified

113139 emit(node.closingFragment);
113140 }
113141 function emitJsxOpeningElementOrFragment(node) {
113142 writePunctuation("<");
113143 if (ts.isJsxOpeningElement(node)) {
113144 var indented = writeLineSeparatorsAndIndentBefore(node.tagName, node);
113145 emitJsxTagName(node.tagName);
113146 emitTypeArguments(node, node.typeArguments);
113147 if (node.attributes.properties && node.attributes.properties.length > 0) {
113148 writeSpace();
113149 }
113150 emit(node.attributes);
113151 writeLineSeparatorsAfter(node.attributes, node);
113152 decreaseIndentIf(indented);
113153 }
113154 writePunctuation(">");
113155 }
113156 function emitJsxText(node) {
113157 writer.writeLiteral(node.text);
113158 }

Callers 1

Calls 8

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

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…