MCPcopy
hub / github.com/vercel/next.js / visitIdentifier

Function visitIdentifier

packages/next/taskfile.js:1576–1582  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

1574 recast.types.namedTypes.File.assert(ast)
1575 recast.visit(ast, {
1576 visitIdentifier(path) {
1577 const replacement = replacements.get(path.node.name)
1578 if (replacement !== undefined) {
1579 path.replace(replacement)
1580 }
1581 this.traverse(path)
1582 },
1583 })
1584 }
1585

Callers

nothing calls this directly

Calls 3

traverseMethod · 0.80
getMethod · 0.65
replaceMethod · 0.65

Tested by

no test coverage detected