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

Function isInJSXContent

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

Source from the content-addressed store, hash-verified

161674 }
161675 }
161676 function isInJSXContent(node) {
161677 return isStringLiteralJsxAttribute(node) ||
161678 (ts.isJsxElement(node) || ts.isJsxSelfClosingElement(node) || ts.isJsxFragment(node)) && (ts.isJsxElement(node.parent) || ts.isJsxFragment(node.parent));
161679 }
161680 function isStringLiteralJsxAttribute(node) {
161681 return ts.isStringLiteral(node) && node.parent && ts.isJsxAttribute(node.parent);
161682 }

Callers 2

extractFunctionInScopeFunction · 0.85
extractConstantInScopeFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…