MCPcopy
hub / github.com/lingodotdev/lingo.dev / parseJSX

Function parseJSX

packages/compiler/src/utils/jsx-attribute.spec.ts:13–18  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

11
12describe("JSX Attribute Value Utils", () => {
13 function parseJSX(code: string): t.File {
14 return parse(code, {
15 sourceType: "module",
16 plugins: ["jsx", "typescript"],
17 });
18 }
19
20 function generateCode(ast: t.Node): string {
21 return generate(ast).code;

Callers 1

getJSXElementPathFunction · 0.70

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected