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

Function updateJsxText

test/fixtures/snapshot/typescript.js:26110–26115  ·  view source on GitHub ↗
(node, text, containsOnlyTriviaWhiteSpaces)

Source from the content-addressed store, hash-verified

26108 }
26109 // @api
26110 function updateJsxText(node, text, containsOnlyTriviaWhiteSpaces) {
26111 return node.text !== text
26112 || node.containsOnlyTriviaWhiteSpaces !== containsOnlyTriviaWhiteSpaces
26113 ? update(createJsxText(text, containsOnlyTriviaWhiteSpaces), node)
26114 : node;
26115 }
26116 // @api
26117 function createJsxOpeningFragment() {
26118 var node = createBaseNode(283 /* SyntaxKind.JsxOpeningFragment */);

Callers

nothing calls this directly

Calls 2

createJsxTextFunction · 0.85
updateFunction · 0.70

Tested by

no test coverage detected