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

Function createJsxOpeningElement

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

Source from the content-addressed store, hash-verified

26040 }
26041 // @api
26042 function createJsxOpeningElement(tagName, typeArguments, attributes) {
26043 var node = createBaseNode(280 /* SyntaxKind.JsxOpeningElement */);
26044 node.tagName = tagName;
26045 node.typeArguments = asNodeArray(typeArguments);
26046 node.attributes = attributes;
26047 node.transformFlags |=
26048 propagateChildFlags(node.tagName) |
26049 propagateChildrenFlags(node.typeArguments) |
26050 propagateChildFlags(node.attributes) |
26051 2 /* TransformFlags.ContainsJsx */;
26052 if (typeArguments) {
26053 node.transformFlags |= 1 /* TransformFlags.ContainsTypeScript */;
26054 }
26055 return node;
26056 }
26057 // @api
26058 function updateJsxOpeningElement(node, tagName, typeArguments, attributes) {
26059 return node.tagName !== tagName

Callers 1

updateJsxOpeningElementFunction · 0.85

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…