MCPcopy Create free account
hub / github.com/TanStack/devtools / visitFunctions

Function visitFunctions

packages/devtools-vite/src/inject-source.ts:118–185  ·  view source on GitHub ↗

* Walk the AST to find all function-like nodes (in document order). * For each, extract propsName and collect JSX elements from its body.

(
  node: Node,
  annotated: Set<number>,
  file: string,
  ignorePatterns: Array<string | RegExp>,
  offsetToLoc: (offset: number) => Loc,
  s: MagicString,
  code: string,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

addSourceToJsxFunction · 0.85

Calls 2

forEachChildFunction · 0.90
processFunctionFunction · 0.85

Tested by

no test coverage detected