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

Function parseJSX

packages/compiler/src/utils/jsx-scope.spec.ts:12–17  ·  view source on GitHub ↗
(code: string)

Source from the content-addressed store, hash-verified

10} from "./jsx-scope";
11
12function parseJSX(code: string): t.File {
13 return parse(code, {
14 sourceType: "module",
15 plugins: ["jsx", "typescript"],
16 });
17}
18
19function getJSXElementPaths(ast: t.File): NodePath<t.JSXElement>[] {
20 const paths: NodePath<t.JSXElement>[] = [];

Callers 1

jsx-scope.spec.tsFile · 0.70

Calls 1

parseFunction · 0.85

Tested by

no test coverage detected