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

Function updateJsxSelfClosingElement

test/fixtures/snapshot/typescript.js:26034–26040  ·  view source on GitHub ↗
(node, tagName, typeArguments, attributes)

Source from the content-addressed store, hash-verified

26032 }
26033 // @api
26034 function updateJsxSelfClosingElement(node, tagName, typeArguments, attributes) {
26035 return node.tagName !== tagName
26036 || node.typeArguments !== typeArguments
26037 || node.attributes !== attributes
26038 ? update(createJsxSelfClosingElement(tagName, typeArguments, attributes), node)
26039 : node;
26040 }
26041 // @api
26042 function createJsxOpeningElement(tagName, typeArguments, attributes) {
26043 var node = createBaseNode(280 /* SyntaxKind.JsxOpeningElement */);

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70

Tested by

no test coverage detected