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

Function createJsxSelfClosingElement

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

Source from the content-addressed store, hash-verified

26016 }
26017 // @api
26018 function createJsxSelfClosingElement(tagName, typeArguments, attributes) {
26019 var node = createBaseNode(279 /* SyntaxKind.JsxSelfClosingElement */);
26020 node.tagName = tagName;
26021 node.typeArguments = asNodeArray(typeArguments);
26022 node.attributes = attributes;
26023 node.transformFlags |=
26024 propagateChildFlags(node.tagName) |
26025 propagateChildrenFlags(node.typeArguments) |
26026 propagateChildFlags(node.attributes) |
26027 2 /* TransformFlags.ContainsJsx */;
26028 if (node.typeArguments) {
26029 node.transformFlags |= 1 /* TransformFlags.ContainsTypeScript */;
26030 }
26031 return node;
26032 }
26033 // @api
26034 function updateJsxSelfClosingElement(node, tagName, typeArguments, attributes) {
26035 return node.tagName !== tagName

Callers 1

Calls 4

createBaseNodeFunction · 0.85
asNodeArrayFunction · 0.85
propagateChildFlagsFunction · 0.85
propagateChildrenFlagsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…