MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / getJSXElementPaths

Function getJSXElementPaths

packages/compiler/src/utils/jsx-scope.spec.ts:19–27  ·  view source on GitHub ↗
(ast: t.File)

Source from the content-addressed store, hash-verified

17}
18
19function getJSXElementPaths(ast: t.File): NodePath<t.JSXElement>[] {
20 const paths: NodePath<t.JSXElement>[] = [];
21 traverse(ast, {
22 JSXElement(path) {
23 paths.push(path);
24 },
25 });
26 return paths;
27}
28
29describe("jsx-scope utils", () => {
30 describe("collectJsxScopes", () => {

Callers 1

jsx-scope.spec.tsFile · 0.85

Calls 1

traverseFunction · 0.50

Tested by

no test coverage detected