MCPcopy
hub / github.com/vitejs/vite / isInScope

Function isInScope

packages/vite/src/node/ssr/ssrTransform.ts:473–475  ·  view source on GitHub ↗
(name: string, parents: ESTree.Node[])

Source from the content-addressed store, hash-verified

471 }
472
473 function isInScope(name: string, parents: ESTree.Node[]) {
474 return parents.some((node) => scopeMap.get(node)?.has(name))
475 }
476 function handlePattern(p: ESTree.ParamPattern, parentScope: ESTree.Node) {
477 if (p.type === 'Identifier') {
478 setScope(parentScope, p.name)

Callers 2

enterFunction · 0.85
walkFunction · 0.85

Calls 2

hasMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected