MCPcopy Create free account
hub / github.com/TanStack/router / Program

Function Program

packages/router-plugin/src/core/code-splitter/compilers.ts:1353–1369  ·  view source on GitHub ↗
(programPath)

Source from the content-addressed store, hash-verified

1351 // the exported bindings as unreferenced.
1352 babel.traverse(ast, {
1353 Program(programPath) {
1354 const bodyPaths = programPath.get('body')
1355 const last = bodyPaths[bodyPaths.length - 1]
1356 if (last && last.isExportNamedDeclaration()) {
1357 last.traverse({
1358 Identifier(identPath) {
1359 if (
1360 identPath.parentPath.isExportSpecifier() &&
1361 identPath.key === 'local'
1362 ) {
1363 refIdents.add(identPath)
1364 }
1365 },
1366 })
1367 }
1368 programPath.stop()
1369 },
1370 })
1371 }
1372

Callers

nothing calls this directly

Calls 2

getMethod · 0.65
stopMethod · 0.45

Tested by

no test coverage detected